diff options
author | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-12-20 17:18:29 -0700 |
---|---|---|
committer | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-12-20 17:18:29 -0700 |
commit | 945c3d8cb7e9f5cb9de8b83e9fc40a581dc42611 (patch) | |
tree | 2362d42247171bd42d396a000252b014f9222720 /.config/polybar/powermenu.ini | |
parent | f6432f0cc889b1e6b4a4244e471d7a5aa065500a (diff) |
Separate polybar modules
Diffstat (limited to '.config/polybar/powermenu.ini')
-rw-r--r-- | .config/polybar/powermenu.ini | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.config/polybar/powermenu.ini b/.config/polybar/powermenu.ini new file mode 100644 index 0000000..83950f8 --- /dev/null +++ b/.config/polybar/powermenu.ini @@ -0,0 +1,45 @@ +[module/powermenu] +type = custom/menu +# This is actually a menu type. + +# If true, <label-toggle> will be to the left of the menu items (default). +# If false, it will be on the right of all the items. +expand-right = true + +format-spacing = 1 + +# Available tags: +# <label-toggle> (default) - gets replaced with <label-(open|close)> +# <menu> (default) +# If expand-right is true, the default will be "<label-toggle><menu>" and the +# other way around otherwise. +# Note that if you use <label-toggle> you must also include +# the definition for <label-open> +# format = <label-toggle><menu> +label-open = +label-open-underline = ${colors.red} +# label-open-foreground = ${colors.cyan} +label-close = +label-close-underline = ${colors.red} +# label-close-foreground = ${colors.cyan} +label-separator = | +# label-separator-foreground = ${colors.foreground-alt} + +# "menu-LEVEL-N" has the same properties as "label-NAME" with +# the additional "exec" property +# Commands will be executed using "/bin/sh -c $COMMAND" + +menu-0-0 = reboot +menu-0-0-exec = menu-open-1 +menu-0-1 = power off +menu-0-1-exec = menu-open-2 + +menu-1-0 = cancel +menu-1-0-exec = menu-open-0 +menu-1-1 = reboot +menu-1-1-exec = sudo reboot + +menu-2-0 = power off +menu-2-0-exec = sudo poweroff +menu-2-1 = cancel +menu-2-1-exec = menu-open-0 |