Advertisement
devinteske

osd_mixer

Jan 21st, 2016
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/sh
  2. # FILE: osd_mixer
  3. killall osd_cat > /dev/null 2>&1
  4. [ $# -gt 0 ] && mixer "$@"
  5. n=$( mixer | awk '$2=="vol"{sub(/:.*/,"",$NF);print $NF}' ) || exit 1
  6. FONT="-adobe-utopia-bold-r-normal--33-240-100-100-p-186-iso8859-1"
  7. OSD_OPTIONS="-f $FONT -c white -A center -d 2 -o 10 -p bottom"
  8. OSD_OPTIONS="$OSD_OPTIONS -l 2 -b percentage -P $n"
  9. ( eval ": | osd_cat $OSD_OPTIONS &" ) > /dev/null 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement