Idk I got crazy but mostly nyxt

This commit is contained in:
Chris Cochrun 2021-09-22 09:57:09 -05:00
parent 263d10c080
commit 1b2ce4207d
12 changed files with 198 additions and 137 deletions

View file

@ -32,15 +32,17 @@
;; Handle runtime errors after startup
(do
(var in_error false)
(awesome.connect_signal "debug::error" (fn [err]
;; Make sure we don't go into an endless error loop
(when (not in_error)
(set in_error true)
(naughty.notify {:preset naughty.config.presets.critical
:title "Oops, an error happened!"
:text (tostring err)})
(set in_error false)))))
(var in_error false)
(awesome.connect_signal "debug::error" (fn [err]
;; Make sure we don't go into an endless error loop
(when (not in_error)
(set in_error true)
(naughty.notify {:preset naughty.config.presets.critical
:title "Oops, an error happened!"
:text (tostring err)})
(set in_error false)))))
;; Variable definitions
;; Themes define colours, icons, font and wallpapers.
@ -72,7 +74,7 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
(local laptop true)
(local laptop false)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@ -644,11 +646,12 @@
(awful.placement.no_offscreen c))
;; MPV wasn't centering right
(when (= c.class "mpv") (awful.placement.centered c))
(when (= c.class "mpv")
(awful.placement.centered c))
(awful.client.focus.byidx 1)
;; Rounded windows done right
(when (not c.fullscreen)
(when (and (not c.fullscreen) (not (= c.name "Display Window")))
(set c.shape (fn [cr w h]
(gears.shape.rounded_rect cr w h (dpi 15)))))
@ -692,7 +695,7 @@
(awful.spawn "bluetoothctl power on")
(awful.spawn "nextcloud --background")
(awful.spawn "rbw-agent")
;; (awful.spawn "jellyfin-mpv-shim")
(awful.spawn "jellyfin-mpv-shim")
(awful.spawn "xset r rate 220 90")
(awful.spawn "autorandr -c")