betterlockscreen: a simple, minimal lockscreen
betterlockscreen is a simple and minimal lockscreen.
I have been using i3lock, witch conflicts with betterlockscreen, so it will be uninstalled.
To install:
1paru -S betterlockscreen
2cp /usr/share/doc/betterlockscreen/examples/betterlockscreenrc ~/.config
In my case, using i3-gaps, I added to ~/.config/i3/config:
1exec --no-startup-id betterlockscreen -w dim
2exec --no-startup-id xautolock -time 10 -corners 000- -locker "betterlockscreen -l dim"
And reviewed my session key bindings:
1bindsym $mod+Shift+e mode "$mode_system"
2set $mode_system (l)ock, (e)xit, (r)eboot, (Shift+s)hutdown
3mode "$mode_system" {
4 # session options
5 bindsym l exec --no-startup-id betterlockscreen -l dim, mode "default"
6 bindsym e exec --no-startup-id i3-msg exit, mode "default"
7 bindsym r exec --no-startup-id systemctl reboot, mode "default"
8 bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
9 # exit system mode
10 bindsym Return mode "default"
11 bindsym Escape mode "default"
12}
Finally:
1systemctl enable betterlockscreen@$USER
2systemctl start betterlockscreen@$USER