i3: lockscreen
This commit is contained in:
parent
19f3decc93
commit
e0cdf8a987
2 changed files with 7 additions and 12 deletions
16
i3/config
16
i3/config
|
@ -11,16 +11,10 @@ set $mod2 Mod1
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
font pango:monospace 8
|
font pango:monospace 8
|
||||||
|
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
# execute lockscreen.sh; sperrt rechner nach x min
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
exec_always --no-startup-id /home/mg/dotfiles/i3/lockscreen.sh
|
||||||
#font pango:DejaVu Sans Mono 8
|
# enter lockscreen manually
|
||||||
|
bindsym $mod1+l exec i3lock -c 000000
|
||||||
# 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
|
|
||||||
|
|
||||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
# 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.
|
# 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
|
# enter fullscreen mode for the focused container
|
||||||
bindsym $mod1+f fullscreen toggle
|
bindsym $mod1+f fullscreen toggle
|
||||||
|
|
||||||
# enter lockscreen
|
|
||||||
bindsym $mod1+l exec i3lock -c 000000
|
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
#bindsym $mod1+s layout stacking
|
#bindsym $mod1+s layout stacking
|
||||||
|
|
3
i3/lockscreen.sh
Executable file
3
i3/lockscreen.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
xautolock -detectsleep -time 5 -locker "i3lock -c 000000""
|
||||||
|
autolock"
|
Loading…
Reference in a new issue