From df35e0c9667886feca33c8ad40bd7af9c42ab9d5 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sun, 12 Sep 2021 16:11:08 -0300 Subject: [PATCH] add screen lock --- .config/qtile/autostart.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index 7172767..1561e8b 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -27,3 +27,18 @@ nm-applet & # Start volume bar ~/.config/xob/volume.sh & +# Run xidlehook +xidlehook \ + `# Don't lock when there's a fullscreen application` \ + --not-when-fullscreen \ + `# Don't lock when there's audio playing` \ + --not-when-audio \ + `# Lock after 5 minutes` \ + --timer 300 \ + 'betterlockscreen -l dimblur' \ + '' \ + `# Finally, suspend an hour after it locks` \ + --timer 3600 \ + 'systemctl suspend' \ + '' & +