diff options
| author | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-17 00:21:40 +0200 |
|---|---|---|
| committer | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-17 00:21:40 +0200 |
| commit | 9b75c16293db811408829871af37a39038b9aceb (patch) | |
| tree | cefc21294c0c11f392fac6b34f242584a68bc6da | |
| parent | 93d5703b12e8c5ca2043f871c60fea6b8d0ca69a (diff) | |
Simple lock script, tweaked vol to display nicely
| -rwxr-xr-x | lock | 3 | ||||
| -rwxr-xr-x | vol | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -0,0 +1,3 @@ +#!/usr/bin/env sh +killall -s HUP gpg-agent +slock @@ -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 + |
