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