From 295fd8712a55b76c7ca4ec1a8e150612baee222e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 20 Mar 2020 00:03:12 +0200 Subject: [PATCH] i3: fix suspend/hibernate Resolves: #64 --- conf/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/i3/config b/conf/i3/config index 6cf60065..0e2a2386 100644 --- a/conf/i3/config +++ b/conf/i3/config @@ -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; sudo /usr/sbin/s2ram'" -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; sudo /usr/sbin/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'" # Jumping to window with alert (the red colour) bindsym $mod+x [urgent=latest] focus