summaryrefslogtreecommitdiff
path: root/lock
diff options
context:
space:
mode:
authortslil clingman <>2021-01-20 15:40:09 -0500
committertslil clingman <>2021-01-20 15:40:09 -0500
commitc0ffa4c32b140378fb51e4c4f8c8c75a67a9d572 (patch)
tree605d07e830d47db96930a0aeb9b12f455f6135e8 /lock
parent8109b6a56b74ff1c5780c14415caf23ecaeb0623 (diff)
Small changes
Diffstat (limited to 'lock')
-rwxr-xr-xlock15
1 files changed, 11 insertions, 4 deletions
diff --git a/lock b/lock
index d8e4489..3134405 100755
--- a/lock
+++ b/lock
@@ -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