polybar: starmenu + dunst
This commit is contained in:
parent
8f06f02793
commit
9492be02dc
3 changed files with 33 additions and 2 deletions
4
polybar/conf.d/mod_dunst
Normal file
4
polybar/conf.d/mod_dunst
Normal file
|
@ -0,0 +1,4 @@
|
|||
[module/dunst]
|
||||
type = custom/script
|
||||
exec = ~/dotfiles/scripts/polybar/dunst.sh
|
||||
interval = 2
|
27
polybar/conf.d/mod_startmenu
Normal file
27
polybar/conf.d/mod_startmenu
Normal 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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue