making awesome notifications better

This commit is contained in:
Chris Cochrun 2021-10-01 06:03:25 -05:00
parent 3c3559bd84
commit 7606fc5369
3 changed files with 20 additions and 13 deletions

View file

@ -52,6 +52,19 @@
(local bling (require "bling")) (local bling (require "bling"))
;; (local awestore (require "awestore")) ;; (local awestore (require "awestore"))
(set naughty.config.defaults.position "bottom_middle")
(set naughty.config.defaults.margin 10)
(set naughty.config.defaults.border_width 0)
(set naughty.config.defaults.hover_timeout 5)
(set naughty.config.defaults.max_width (dpi 500))
;; {
;; :rule { }
;; :properties {
;; :border-width 0
;; :border_color "#000000"
;; :opacity 0.9
;; :shape gears.shape.rounded_rect}}
;; This is used later as the default terminal and editor to run. ;; This is used later as the default terminal and editor to run.
(var terminal "alacritty") (var terminal "alacritty")
(var editor (or (os.getenv "EDITOR") "emacsclient")) (var editor (or (os.getenv "EDITOR") "emacsclient"))
@ -619,15 +632,7 @@
(ruled.notification.connect_signal (ruled.notification.connect_signal
"request::rules" "request::rules"
(fn [] (fn []
(ruled.notification.append_rules notifications (ruled.notification.append_rules notifications)))
;; {
;; :rule { }
;; :properties {
;; :border-width 0
;; :border_color "#000000"
;; :opacity 0.9
;; :shape gears.shape.rounded_rect}}
)))
;; Signals ;; Signals
;; Signal function to execute when a new client appears. ;; Signal function to execute when a new client appears.
@ -690,13 +695,14 @@
(awful.spawn.once "picom --experimental-backend") (awful.spawn.once "picom --experimental-backend")
(awful.spawn.once "/usr/lib/polkit-kde-authentication-agent-1") (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 "feh --bg-fill /home/chris/Pictures/wallpapers/tech.jpg")
(awful.spawn.once "caffeine") (awful.spawn.once "caffeine")
(awful.spawn.once "bluetoothctl power on") (awful.spawn.once "bluetoothctl power on")
(awful.spawn.once "nextcloud --background") (awful.spawn.once "nextcloud --background")
(awful.spawn.once "rbw-agent") (awful.spawn.once "rbw-agent")
(awful.spawn.once "jellyfin-mpv-shim") (awful.spawn.once "killall jellyfin-mpv-shim && jellyfin-mpv-shim")
(awful.spawn.once "xset r rate 220 90") (awful.spawn.once "xset r rate 220 90")
(awful.spawn.once "/usr/lib/kdeconnectd")
(awful.spawn.once "autorandr -c") (awful.spawn.once "autorandr -c")
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'") (awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
;; (awful.spawn.once "latte-dock") ;; (awful.spawn.once "latte-dock")

View file

@ -98,6 +98,7 @@ theme.notification_margin = dpi(10)
theme.notification_border_width = 0 theme.notification_border_width = 0
theme.notification_shape = gears.shape.rounded_rect theme.notification_shape = gears.shape.rounded_rect
theme.notification_position = "bottom_middle" theme.notification_position = "bottom_middle"
theme.notification_spacing = 10.0
-- notification_[border_color|border_width|shape|opacity] -- notification_[border_color|border_width|shape|opacity]
-- Variables set for theming the menu: -- Variables set for theming the menu:

View file

@ -10,7 +10,7 @@ if pgrep -x nyxt > /dev/null; then
# echo $emacsrg # echo $emacsrg
if [ -z $nyxtrg ]; then if [ -z $nyxtrg ]; then
env GDK_SCALE=2 GDK_DPI_SCALE=0.5 nyxt nyxt
exit exit
else else
wmctrl -ia $nyxtrg wmctrl -ia $nyxtrg
@ -29,5 +29,5 @@ if pgrep -x nyxt > /dev/null; then
fi fi
else else
echo not running echo not running
env GDK_SCALE=2 GDK_DPI_SCALE=0.5 nyxt nyxt
fi fi