commit a8e9409d57193b26774dddf30ae354187c4ba364
parent 3100eb3551908383221db3f08dd89b813b07aece
Author: Ashymad <czilukim@o2.pl>
Date: Fri, 2 Mar 2018 21:08:05 +0100
Use xautolock
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.i3/config b/.i3/config
@@ -94,9 +94,9 @@ bindsym $mod+r mode "resize"
set $power_control "[l]ock log[o]ut [s]uspend [h]ibernate [r]eboot [p]oweroff"
mode $power_control {
- bindsym l exec i3lock -i ~/.i3/Moon.png; mode "default"
+ bindsym l exec ~/.i3/lock.sh off; mode "default"
bindsym o exec i3-msg exit; mode "default"
- bindsym s exec systemctl suspend; mode "default"
+ bindsym s exec systemctl suspend && ~/.i3/lock.sh; mode "default"
bindsym h exec systemctl hibernate; mode "default"
bindsym r exec systemctl reboot; mode "default"
bindsym p exec systemctl poweroff; mode "default"
@@ -129,4 +129,5 @@ for_window [instance="mpv"] pixel 0
exec --no-startup-id redshift-gtk
exec --no-startup-id ~/.fehbg
+exec --no-startup-id xautolock -detectsleep -time 5 -locker "~/.i3/lock.sh off" -nowlocker "~/.i3/lock.sh"
exec_always --no-startup-id ~/.config/polybar/launch.sh