aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/lmc
blob: f1ef8f5af9531612185652daae5ba127edb00518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

case "$1" in
	"up") pamixer --allow-boost -i "$2" || amixer sset Master 2%+ ;;
	"down") pamixer --allow-boost -d "$2" || amixer sset Master 2%- ;;
	"mute") pamixer --allow-boost -t || amixer sset Master toggle ;;
	"truemute") pamixer --allow-boost -m || amixer sset Master mute ;;
	"toggle") playerctl play-pause;;
	"pause") playerctl pause;;
	"forward") playerctl position "$2"+;;
	"back") playerctl position "$2"-;;
	"next") playerctl next;;
	"prev") playerctl previous;;
esac

exit