From 945c3d8cb7e9f5cb9de8b83e9fc40a581dc42611 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Sun, 20 Dec 2020 17:18:29 -0700 Subject: Separate polybar modules --- .config/polybar/powermenu.ini | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .config/polybar/powermenu.ini (limited to '.config/polybar/powermenu.ini') 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, 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: +# (default) - gets replaced with +# (default) +# If expand-right is true, the default will be "" and the +# other way around otherwise. +# Note that if you use you must also include +# the definition for +# format = +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 -- cgit v1.2.3-70-g09d2