polybar: starmenu + dunst

This commit is contained in:
Michael Grote 2022-07-21 16:22:45 +02:00
parent 8f06f02793
commit 9492be02dc
3 changed files with 33 additions and 2 deletions

4
polybar/conf.d/mod_dunst Normal file
View file

@ -0,0 +1,4 @@
[module/dunst]
type = custom/script
exec = ~/dotfiles/scripts/polybar/dunst.sh
interval = 2

View file

@ -0,0 +1,27 @@
[module/startmenu]
type = custom/menu
label-open =" Start"
label-close =" Close"
label-separator = |
format-spacing = 1
menu-0-0 ="Power"
menu-0-0-exec = #startmenu.open.1
menu-0-1 ="Misc"
menu-0-1-exec = #startmenu.open.2
menu-1-0 ="shutdown"
menu-1-0-exec ="~/dotfiles/scripts/pwr.sh -s"
menu-1-1 ="restart"
menu-1-1-exec ="~/dotfiles/scripts/pwr.sh -r"
menu-1-2 ="hibernate"
menu-1-2-exec ="~/dotfiles/scripts/pwr.sh -hb"
menu-1-3 ="suspend"
menu-1-3-exec ="~/dotfiles/scripts/pwr.sh -sd"
menu-1-4 ="lock"
menu-1-4-exec ="~/dotfiles/scripts/pwr.sh"
menu-2-0 ="toggle dunst notifications"
menu-2-0-exec ="dunstctl set-paused toggle"

View file

@ -24,7 +24,7 @@ margin-bottom = 5
[bar/oben]
inherit = bar/defaults
modules-left = i3
modules-center =
modules-center = dunst
modules-right = backlight cpu system-cpu-loadavg memory filesystem battery
tray-position = right
tray-padding = 2
@ -32,6 +32,6 @@ tray-padding = 2
[bar/unten]
inherit = bar/defaults
bottom = true
modules-left =
modules-left = startmenu
modules-center = polywins
modules-right = pulseaudio time