summaryrefslogblamecommitdiffstats
path: root/.bin/ag-audio
blob: f39522f0efd93f859f8af71d5b718c190aad875b (plain) (tree)






















































                                   
#!/bin/sh

__increase() {
	pamixer -i "${1:-10}"
}

__decrease() {
	pamixer -d "${1:-10}"
}

__mic_toggle() {
	pamixer --default-source -t
}

__toggle() {
	pamixer -t
}

__next() {
	cmus-remote -n
}

__prev() {
	cmus-remote -r
}

__play() {
	cmus-remote -u
}

case "${1}" in
	i*)
		__increase "${2}"
		;;
	d*)
		__decrease "${2}"
		;;
	mic-t*)
		__mic_toggle
		;;
	t*)
		__toggle
		;;
	n*)
		__next
		;;
	pr*)
		__prev
		;;
	pl*)
		__play
		;;
esac

ag-status &>/dev/null
remember that computers suck.