summaryrefslogtreecommitdiff
path: root/.config/polybar/powermenu.ini
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/powermenu.ini')
-rw-r--r--.config/polybar/powermenu.ini45
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