mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
i3: use systemctl -i for suspend/hibernate
This commit is contained in:
parent
1e08997ad5
commit
b705f2f4c6
@ -253,8 +253,8 @@ bindsym Control+$mod+l exec $ScreenLockCmd
|
||||
# suspend and hibernate, inspiration took from the nagbar for exiting i3.
|
||||
# Passwordless sudo for both commands is specified in
|
||||
# /etc/sudoers.d/hibernate
|
||||
bindsym $mod+Escape exec "i3-nagbar -t warning -m 'You pressed the SUSPEND shortcut. Do you really want to SUSPEND?' -B 'Yes, SUSPEND' '$ScreenLockCmd; systemctl suspend'"
|
||||
bindsym $mod+Shift+Escape exec "i3-nagbar -t warning -m 'You pressed the HIBERNATE shortcut. Do you really want to HIBERNATE?' -B 'Yes, HIBERNATE' '$ScreenLockCmd; systemctl hibernate'"
|
||||
bindsym $mod+Escape exec "i3-nagbar -t warning -m 'You pressed the SUSPEND shortcut. Do you really want to SUSPEND?' -B 'Yes, SUSPEND' '$ScreenLockCmd; systemctl -i suspend'"
|
||||
bindsym $mod+Shift+Escape exec "i3-nagbar -t warning -m 'You pressed the HIBERNATE shortcut. Do you really want to HIBERNATE?' -B 'Yes, HIBERNATE' '$ScreenLockCmd; systemctl -i hibernate'"
|
||||
|
||||
# Jumping to window with alert (the red colour)
|
||||
bindsym $mod+x [urgent=latest] focus
|
||||
|
Loading…
Reference in New Issue
Block a user