summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-26 08:54:45 +0200
committerErich Eckner <git@eckner.net>2018-04-26 08:54:45 +0200
commite8c2569df91bcb286fa7ae5434c6d9e949bd26de (patch)
treeacc2350a639b95ee8c9b95f0252dedf77974799c
parentedea28f4a43bd601e989dc750ee959db337d8b45 (diff)
downloadlockscreen-e8c2569df91bcb286fa7ae5434c6d9e949bd26de.tar.xz
aufgeräumt
-rwxr-xr-xlockscreen5
1 files changed, 1 insertions, 4 deletions
diff --git a/lockscreen b/lockscreen
index 7f9cad5..0f7dcb9 100755
--- a/lockscreen
+++ b/lockscreen
@@ -1,8 +1,5 @@
#!/bin/bash
-for pid in $(ps -A | grep gpg-agent | awk '{print $1;}' | tr "\n" " ")
-do
- kill -s SIGHUP $pid
-done
+pkill --signal SIGHUP gpg-agent
xlock -mode blank -startCmd "xset dpms force off"