#!/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