(SXHkD)~playerctl controls instead of mpc based commands
playerctl is a bit more generic and makes it easier to script interactions.
This commit is contained in:
@@ -5,5 +5,5 @@ then
|
||||
echo "$(mpc volume | tr -d 'volume: ' | tr -d '%')"
|
||||
elif [[ $# -eq 1 ]]
|
||||
then
|
||||
mpc volume "$(echo $1 | tr -d '%')"
|
||||
playerctl --player=spotify volume "$(echo $1 | tr -d '%')"
|
||||
fi
|
||||
Reference in New Issue
Block a user