making rofi work a lil better
This commit is contained in:
parent
9daaa96d74
commit
38e0f2f923
14 changed files with 156 additions and 79 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303
|
||||
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
|
|
@ -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.
|
||||
|
@ -688,14 +688,15 @@
|
|||
|
||||
(awful.screen.focus 1)
|
||||
|
||||
(awful.spawn "picom --experimental-backend")
|
||||
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
|
||||
(awful.spawn "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg")
|
||||
(awful.spawn "caffeine")
|
||||
(awful.spawn "bluetoothctl power on")
|
||||
(awful.spawn "nextcloud --background")
|
||||
(awful.spawn "rbw-agent")
|
||||
(awful.spawn "jellyfin-mpv-shim")
|
||||
(awful.spawn "xset r rate 220 90")
|
||||
|
||||
(awful.spawn "autorandr -c")
|
||||
(awful.spawn.once "picom --experimental-backend")
|
||||
(awful.spawn.once "/usr/lib/polkit-kde-authentication-agent-1")
|
||||
(awful.spawn.once "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg")
|
||||
(awful.spawn.once "caffeine")
|
||||
(awful.spawn.once "bluetoothctl power on")
|
||||
(awful.spawn.once "nextcloud --background")
|
||||
(awful.spawn.once "rbw-agent")
|
||||
(awful.spawn.once "jellyfin-mpv-shim")
|
||||
(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")
|
||||
|
|
|
@ -176,6 +176,8 @@
|
|||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
(awful.key [modkey ctrl] "Escape" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
(awful.key [modkey] "space" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/windows.sh"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue