diff options
| author | tslil clingman <> | 2021-01-20 15:40:09 -0500 |
|---|---|---|
| committer | tslil clingman <> | 2021-01-20 15:40:09 -0500 |
| commit | c0ffa4c32b140378fb51e4c4f8c8c75a67a9d572 (patch) | |
| tree | 605d07e830d47db96930a0aeb9b12f455f6135e8 /lock | |
| parent | 8109b6a56b74ff1c5780c14415caf23ecaeb0623 (diff) | |
Small changes
Diffstat (limited to 'lock')
| -rwxr-xr-x | lock | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,8 +1,15 @@ #!/usr/bin/env sh + +# Clear keys killall -s HUP gpg-agent keychain --clear -xset dpms force off + +# We want powersaving now that screen is locked +xset +dpms +sleep 1; xset dpms force off + +# Lock slock -fix_backlight -xset s off -xest -dpms + +# Clean up on exit +trap "xset -dpms" EXIT |
