Skip to content

Instantly share code, notes, and snippets.

View perhells's full-sized avatar

Per Hellström perhells

  • Stockholm, Sweden
View GitHub Profile
@kui
kui / vol.sh
Created February 1, 2013 15:01
change sound volume with notify-osd
#!/bin/sh
# see https://bbs.archlinux.org/viewtopic.php?id=69589
usage="$0 Version $version Help\nDependencies: libnotify, alsa-utils\nusage:\n\t $0 [OPTIONS] -c COMMAND \nCOMMAND:\n-c\t up \n\t\t(increase volume by increment)\n\tdown \n\t\t(decrease volume by increment)\n\tmute \n\t\t(mute volume) \n\nOPTIONS:\n-i\t increment \n\t\t(the amount of db to increase/decrease)[default:2500] \n-m\t mixer \n\t\t(the device to change)[default:Master]"
command=
increment=2500
mixer="Master"