Merge branch 'master' of gitlab.com:chriscochrun/dotfiles

This commit is contained in:
Chris Cochrun 2021-09-22 09:59:53 -05:00
commit 6f25e400a9
10 changed files with 188 additions and 132 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 [
@ -649,7 +651,7 @@
(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)))))
@ -693,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")