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' \ + '' & +