summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-06-17 00:21:40 +0200
committerTslil Clingman <tslil.clingman@gmail.com>2015-06-17 00:21:40 +0200
commit9b75c16293db811408829871af37a39038b9aceb (patch)
treecefc21294c0c11f392fac6b34f242584a68bc6da
parent93d5703b12e8c5ca2043f871c60fea6b8d0ca69a (diff)
Simple lock script, tweaked vol to display nicely
-rwxr-xr-xlock3
-rwxr-xr-xvol6
2 files changed, 8 insertions, 1 deletions
diff --git a/lock b/lock
new file mode 100755
index 0000000..8941335
--- /dev/null
+++ b/lock
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+killall -s HUP gpg-agent
+slock
diff --git a/vol b/vol
index 5ff7b12..778abf9 100755
--- a/vol
+++ b/vol
@@ -10,4 +10,8 @@ case "$1" in
*) $cmd toggle;;
esac | grep \% | cut -d\ -f 6,8 | tr -d '[]' > $fle
-ratpoison -c "echo Volume: `cat $fle`"
+for c in "set bargravity ne" "echo Volume: `cat $fle`" "set bargravity c"; do
+ ratpoison -c "$c"
+ echo $c
+done
+