31290370d9771971ec7f83f1317a255f7501f591

Author
Pavle Portic <pavle.portic@tilda.center>
Committer
Pavle Portic <pavle.portic@tilda.center>
Date

Message

Update i3 locking to use loginctl

Diff

 1diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl
 2index 152a0610b704458963e15cd5309d80be95387c50..d7dae2f3399128d0d30fd0ec9a4ef4a5b15f058c 100644
 3--- a/dot_config/i3/config.tmpl
 4+++ b/dot_config/i3/config.tmpl
 5@@ -128,7 +128,13 @@ bindsym $mod+Shift+w move container to workspace 
 6 bindsym $mod+Shift+m move container to workspace 
 7 bindsym $mod+Shift+c reload
 8 bindsym $mod+Shift+r restart
 9-bindsym $mod+Control+l exec "i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t"
10+
11+# Screen locking
12+# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
13+# screen before suspend. Use loginctl lock-session to lock your screen.
14+exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t --nofork
15+# bindsym $mod+Control+l exec "i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t"
16+bindsym $mod+Control+l exec loginctl lock-session
17 
18 mode "resize" {
19 	bindsym h resize shrink width 10 px or 10 ppt