diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-07-02 11:13:12 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-07-02 11:13:12 -0400 |
commit | e6a83169943c909622a1e41439fb2ffb3a1bec31 (patch) | |
tree | d9adee1ad1b59c363abc006145c2c2ef846fc1f6 /autolocker.sh | |
parent | 0f0409e3ffef48bd20b3aa31d03cb1ac6e35f385 (diff) | |
download | scripts-e6a83169943c909622a1e41439fb2ffb3a1bec31.tar.xz scripts-e6a83169943c909622a1e41439fb2ffb3a1bec31.zip |
brought all locking, sleeping, etc. into autolocker
Diffstat (limited to 'autolocker.sh')
-rwxr-xr-x | autolocker.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/autolocker.sh b/autolocker.sh index 5c79e23..9f6a894 100755 --- a/autolocker.sh +++ b/autolocker.sh @@ -1,10 +1,18 @@ #!/bin/sh -notifier="notify-send -t=10000 '10 seconds to lock...'" -locker="xautolock -notify 10 -time 10 -locker locker.sh" - if [ "$1" = "-d" ]; then - $locker -notifier "$notifier" + xautolock \ + -notify 10 \ + -time 10 \ + -locker "i3lock -n -f -c 000000 -i ~/.local/share/wallpapers/lock.png; sleep 0.2" \ + -notifier "notify-send -t=10000 '10 seconds to lock...'" else - $locker -detectsleep -killtime 10 -killer "sleeper.sh" -notifier "$notifier" + xautolock \ + -detectsleep \ + -killtime 10 \ + -killer "acpiconf -s3" \ + -notify 10 \ + -time 10 \ + -locker "i3lock -n -f -c 000000 -i ~/.local/share/wallpapers/lock.png; sleep 0.2" \ + -notifier "notify-send -t=10000 '10 seconds to lock...'" fi |