summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"