diff options
| author | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-13 23:16:14 +0200 |
|---|---|---|
| committer | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-13 23:16:14 +0200 |
| commit | 93d5703b12e8c5ca2043f871c60fea6b8d0ca69a (patch) | |
| tree | a1625e712f0ab06c19bc1546ab74d591cefbc105 /vol | |
| parent | 7f55198d9c0a2f8b6a61d8c596c89e502f491fe1 (diff) | |
Volume script and colour scheme
Diffstat (limited to 'vol')
| -rwxr-xr-x | vol | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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`" |
