i3: lockscreen

This commit is contained in:
Michael Grote 2021-07-01 09:46:13 +02:00
parent 19f3decc93
commit e0cdf8a987
2 changed files with 7 additions and 12 deletions

View file

@ -11,16 +11,10 @@ set $mod2 Mod1
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# execute lockscreen.sh; sperrt rechner nach x min
exec_always --no-startup-id /home/mg/dotfiles/i3/lockscreen.sh
# enter lockscreen manually
bindsym $mod1+l exec i3lock -c 000000
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
@ -83,8 +77,6 @@ bindsym $mod1+Ctrl+less move workspace to output left
# enter fullscreen mode for the focused container
bindsym $mod1+f fullscreen toggle
# enter lockscreen
bindsym $mod1+l exec i3lock -c 000000
# change container layout (stacked, tabbed, toggle split)
#bindsym $mod1+s layout stacking

3
i3/lockscreen.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
xautolock -detectsleep -time 5 -locker "i3lock -c 000000""
autolock"