summaryrefslogtreecommitdiff
path: root/vol
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-06-13 23:16:14 +0200
committerTslil Clingman <tslil.clingman@gmail.com>2015-06-13 23:16:14 +0200
commit93d5703b12e8c5ca2043f871c60fea6b8d0ca69a (patch)
treea1625e712f0ab06c19bc1546ab74d591cefbc105 /vol
parent7f55198d9c0a2f8b6a61d8c596c89e502f491fe1 (diff)
Volume script and colour scheme
Diffstat (limited to 'vol')
-rwxr-xr-xvol13
1 files changed, 13 insertions, 0 deletions
diff --git a/vol b/vol
new file mode 100755
index 0000000..5ff7b12
--- /dev/null
+++ b/vol
@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+
+# A small volume control script for the laptop
+
+cmd="amixer set Master"
+fle=$HOME/.vol
+case "$1" in
+ "up") $cmd 2%+;;
+ "down") $cmd 2%-;;
+ *) $cmd toggle;;
+esac | grep \% | cut -d\ -f 6,8 | tr -d '[]' > $fle
+
+ratpoison -c "echo Volume: `cat $fle`"