summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-26 08:45:31 +0200
committerErich Eckner <git@eckner.net>2018-04-26 08:45:31 +0200
commitedea28f4a43bd601e989dc750ee959db337d8b45 (patch)
tree03016de04e45f4fa48d8f4226ad472c9638d1358
downloadlockscreen-edea28f4a43bd601e989dc750ee959db337d8b45.tar.xz
Initial commit
-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"