dotfiles/polybar/conf.d/mod_startmenu

31 lines
829 B
Text

[module/startmenu]
type = custom/menu
format-full-prefix-foreground =${colors.foreground-alt}
label-open =" Start "
label-close =" Close "
label-open-background = "#32CD32"
label-close-background = "#FF8A00"
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"
menu-2-1 ="fortune"
menu-2-1-exec =dunstify "$(fortune -n 50)"