From e0cdf8a987d9bd6778b6767444cd128a2ff2779e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 1 Jul 2021 09:46:13 +0200 Subject: [PATCH] i3: lockscreen --- i3/config | 16 ++++------------ i3/lockscreen.sh | 3 +++ 2 files changed, 7 insertions(+), 12 deletions(-) create mode 100755 i3/lockscreen.sh diff --git a/i3/config b/i3/config index d3da3ba..4b29c8f 100644 --- a/i3/config +++ b/i3/config @@ -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 diff --git a/i3/lockscreen.sh b/i3/lockscreen.sh new file mode 100755 index 0000000..f0c87c2 --- /dev/null +++ b/i3/lockscreen.sh @@ -0,0 +1,3 @@ +#!/bin/bash +xautolock -detectsleep -time 5 -locker "i3lock -c 000000"" +autolock"