summaryrefslogtreecommitdiff
path: root/.config/polybar/powermenu.ini
blob: aba6aadcc66590df464446c2b7a48ba63ac30b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 = reboot

menu-2-0 = power off
menu-2-0-exec = shutdown now
menu-2-1 = cancel
menu-2-1-exec = menu-open-0