diff options
author | Erich Eckner <git@eckner.net> | 2018-04-26 08:45:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-26 08:45:31 +0200 |
commit | edea28f4a43bd601e989dc750ee959db337d8b45 (patch) | |
tree | 03016de04e45f4fa48d8f4226ad472c9638d1358 | |
download | lockscreen-edea28f4a43bd601e989dc750ee959db337d8b45.tar.xz |
Initial commit
-rwxr-xr-x | lockscreen | 8 |
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" |