Compare commits

...

2 Commits

Author SHA1 Message Date
exu
d5092cb54e Add placeholders for locking, suspend, hibernate 2023-07-11 16:43:30 +02:00
exu
2743f421ee Change menu buttons.
lock: k -> l
    logout: l -> e
2023-07-11 16:41:21 +02:00
2 changed files with 11 additions and 7 deletions

View File

@ -122,14 +122,14 @@ bindsym $mod+Shift+0 move container to workspace 10; workspace 10
#Press $mod (super) and X to exit - check toolbar for next choices
bindsym $mod+x mode "$mode_system"
set $mode_system System (k) lock, (l) logout, (r) reboot, (s) shutdown, (u) suspend, (h) hibernate
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend, (h) hibernate
mode "$mode_system" {
bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"

View File

@ -131,14 +131,18 @@ bind = ALT_$mod, L, exit,
bind = $mod, x, submap, | (S)hutdown, (R)eboot, (E)xit |
# power management submap
submap = | (S)hutdown, (R)eboot, (E)xit |
# logout
bind = , e, exit,
# lock
# TODO
# logout
bind = , e, exit,
# poweroff
bind = , s, exec, systemctl poweroff
# reboot
bind = , r, exec, systemctl reboot
# suspend
# TODO
# hibernate
# TODO
# use reset to go back to the global submap
bind=,escape,submap,reset