making awesome work again
This commit is contained in:
parent
c134490230
commit
6dcb3c6efd
10 changed files with 52 additions and 41 deletions
|
@ -8,7 +8,7 @@
|
|||
(local beautiful (require "beautiful"))
|
||||
(local xresources (require "beautiful.xresources"))
|
||||
;; Notification library
|
||||
;; (local naughty (require "naughty"))
|
||||
(local naughty (require "naughty"))
|
||||
(local menubar (require "menubar"))
|
||||
;; Enable hotkeys help widget for VIM and other apps
|
||||
;; when client with a matching name is opened:
|
||||
|
@ -20,27 +20,27 @@
|
|||
;; my splits
|
||||
(local clientrules (require "rules"))
|
||||
(local keybindings (require "keybindings"))
|
||||
;; (local notifications (require "notifications"))
|
||||
(local notifications (require "notifications"))
|
||||
|
||||
;; Error handling
|
||||
;; Check if awesome encountered an error during startup and fall back to
|
||||
;; another config (This code will only ever execute for the fallback config)
|
||||
;; (when awesome.startup_errors
|
||||
;; (naughty.notify {:preset naughty.config.presets.critical
|
||||
;; :title "Oops, there were errors during startup!"
|
||||
;; :text awesome.startup_errors}))
|
||||
(when awesome.startup_errors
|
||||
(naughty.notify {:preset naughty.config.presets.critical
|
||||
:title "Oops, there were errors during startup!"
|
||||
:text awesome.startup_errors}))
|
||||
|
||||
;; 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)))))
|
||||
(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)))))
|
||||
|
||||
|
||||
|
||||
|
@ -616,18 +616,18 @@
|
|||
;; Rules
|
||||
(ruled.client.append_rules clientrules)
|
||||
|
||||
;; (ruled.notification.connect_signal
|
||||
;; "request::rules"
|
||||
;; (fn []
|
||||
;; (ruled.notification.append_rules notifications
|
||||
;; ;; {
|
||||
;; ;; :rule { }
|
||||
;; ;; :properties {
|
||||
;; ;; :border-width 0
|
||||
;; ;; :border_color "#000000"
|
||||
;; ;; :opacity 0.9
|
||||
;; ;; :shape gears.shape.rounded_rect}}
|
||||
;; )))
|
||||
(ruled.notification.connect_signal
|
||||
"request::rules"
|
||||
(fn []
|
||||
(ruled.notification.append_rules notifications
|
||||
;; {
|
||||
;; :rule { }
|
||||
;; :properties {
|
||||
;; :border-width 0
|
||||
;; :border_color "#000000"
|
||||
;; :opacity 0.9
|
||||
;; :shape gears.shape.rounded_rect}}
|
||||
)))
|
||||
|
||||
;; Signals
|
||||
;; Signal function to execute when a new client appears.
|
||||
|
@ -699,4 +699,4 @@
|
|||
(awful.spawn.once "xset r rate 220 90")
|
||||
(awful.spawn.once "autorandr -c")
|
||||
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
|
||||
(awful.spawn.once "latte-dock")
|
||||
;; (awful.spawn.once "latte-dock")
|
||||
|
|
|
@ -46,9 +46,9 @@
|
|||
:globalkeys (gears.table.join
|
||||
(awful.key [ modkey shift ] "s" hotkeys_popup.show_help
|
||||
{ :description "show help" :group "awesome"})
|
||||
(awful.key [ modkey ] "Left" awful.tag.viewprev
|
||||
(awful.key [ modkey alt ] "h" awful.tag.viewprev
|
||||
{:description "view previous" :group "tag"})
|
||||
(awful.key [ modkey ] "Right" awful.tag.viewnext
|
||||
(awful.key [ modkey alt ] "l" awful.tag.viewnext
|
||||
{:description "view next" :group "tag"})
|
||||
(awful.key [ modkey ] "Escape" awful.tag.history.restore
|
||||
{:description "go back" :group "tag"})
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
:propertites {
|
||||
:border-width beautiful.border_width
|
||||
:border_color "#000000"
|
||||
:opacity 0.9
|
||||
:opacity 0.3
|
||||
:shape gears.shape.rounded_rect
|
||||
:position "bottom_middle"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue