December 03, 2012

alsac Command Line Sound Controller

When i’ve installed ubuntu with openbox window manager, there were no task bars and no menus. that was a problem for me to control the sound using command line.

alsac To solve this i wrote some lines quickly to create a simple and easy command line tool allows me to control sound volume.

alsac works only with alsa devices and tested only on Ubuntu 12.10, based on alsa command and its parmeters.

Installation:

curl https://raw.github.com/cyounes/alsac/master/quickinstall.sh | sh 

Usage:

$ alsac [-|+] [value]
$ alsac [value] 
$ alsac [mute | unmute]

Examples:

Examples:

  • alsac - 10 : decrease sound of 10%

  • alsac + 18 : increase sound of 18%

  • alsac 45 : set sound to 45%

  • alsac mute : mute sound

  • alsac unmute: unmute sound

Github page:

https://github.com/cyounes/alsac