summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlockscreen8
1 files changed, 8 insertions, 0 deletions
diff --git a/lockscreen b/lockscreen
new file mode 100755
index 0000000..7f9cad5
--- /dev/null
+++ b/lockscreen
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+for pid in $(ps -A | grep gpg-agent | awk '{print $1;}' | tr "\n" " ")
+do
+ kill -s SIGHUP $pid
+done
+
+xlock -mode blank -startCmd "xset dpms force off"