From 16324545c365601f8b213dcce8e3dbb0f7e9f489 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Sat, 14 Aug 2021 18:17:43 -0500 Subject: [PATCH] added --no-startup-id to the i3 suspend --- i3/.config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 5f75c7c..3ef33b2 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -177,11 +177,11 @@ font pango:DejaVu Sans Mono 8 bindsym $mod+r mode "resize" - # lock and turn off the screen with mod+x, and lock+sleep computer with mod+shift+x + # lock and turn off the screen with mod+x, and lock+suspend computer with mod+shift+x set $lock_command i3lock set $lock_command_nof i3lock -n #versuon of $lock_command that does not fork. bindsym $mod+x exec --no-startup-id "~/dotfiles/scripts/screen_off $lock_command_nof" - bindsym $mod+shift+x exec --no-startup-id "$lock_command"; exec "systemctl suspend" + bindsym $mod+shift+x exec --no-startup-id "$lock_command"; exec --no-startup-id "systemctl suspend" # disable screen going to sleep with mod+c, enable screen going to sleep with mod+shift+c bindsym $mod+c exec --no-startup-id "xset s off -dpms; notify-send 'screen blanking off'"