-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
76 lines (68 loc) · 2.01 KB
/
config.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Set margins for specific edges of the window.
margins:
top: 0
left: 0
right: 0
bottom: 0
# Set the edges to which the window will be anchored.
#
# - If two perpendicular edges are anchored (e.g. "top" and "left"), the
# surface with be anchored to that corner.
# - If two opposite edges are anchored (e.g. "top" and "bottom"), the window
# will be stretched across the screen in that direction.
anchors:
top: false
left: false
right: false
bottom: false
# Set powermenu layout.
layout:
spacing: 12 # Spacing between options.
orientation: "horizontal" # How to position options. Possible values: "horizontal", "vertical"
# Option configuration.
# This allows you to customize each option, including whether to enable the
# option, the commands to execute, the order of the options, and more.
hibernate:
enabled: true # Whether to enabled the option
order: 1 # Order of the option. The smaller the value, the left (higher) it will appear.
icon: "$XDG_CONFIG_HOME/powermenu/icons/hibernate.svg" # Icon of the option.
command:
name: "systemctl" # Name of the executable
args: # Arguments provided to the executable.
- "hibernate"
# Notice there is no default command for "lock". There is no generic way to
# lock session, so it is to be configured by the end user.
lock:
enabled: true
order: 2
icon: "$XDG_CONFIG_HOME/powermenu/icons/lock.svg"
logout:
enabled: true
order: 3
icon: "$XDG_CONFIG_HOME/powermenu/icons/logout.svg"
command:
name: "pkill"
args:
- "-KILL"
- "-u"
- "$USER" # Environment variables are supported.
poweroff:
enabled: true
order: 4
icon: "$XDG_CONFIG_HOME/powermenu/icons/poweroff.svg"
command:
name: "poweroff"
reboot:
enabled: true
order: 5
icon: "$XDG_CONFIG_HOME/powermenu/icons/reboot.svg"
command:
name: "reboot"
suspend:
enabled: true
order: 6
icon: "$XDG_CONFIG_HOME/powermenu/icons/suspend.svg"
command:
name: "systemctl"
args:
- "suspend"