i3: lock session with loginctl

This way, we don't depend on X11. #onesteptowayland
This commit is contained in:
Vincent Bernat 2022-07-22 13:28:33 +02:00
parent a614930197
commit 11602af653

4
config
View file

@ -128,8 +128,8 @@ bindsym $mod+Shift+o move workspace to output next
bindsym $mod+Shift+n nop "move-to-new-workspace" bindsym $mod+Shift+n nop "move-to-new-workspace"
# lock screen # lock screen
bindsym XF86ScreenSaver exec --no-startup-id exec xset s activate bindsym XF86ScreenSaver exec --no-startup-id exec loginctl lock-session
bindsym $mod+Delete exec --no-startup-id exec xset s activate bindsym $mod+Delete exec --no-startup-id exec loginctl lock-session
# print screen # print screen
bindsym Print exec --no-startup-id exec ~/.config/i3/bin/screenshot window bindsym Print exec --no-startup-id exec ~/.config/i3/bin/screenshot window
bindsym XF86Display exec --no-startup-id exec ~/.config/i3/bin/screenshot window bindsym XF86Display exec --no-startup-id exec ~/.config/i3/bin/screenshot window