added --no-startup-id to the i3 suspend

This commit is contained in:
Gabe Venberg 2021-08-14 18:17:43 -05:00
parent a5d123998c
commit 16324545c3

View file

@ -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'"