aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/spotify_volume
blob: bda29647f23df24ae3a48c3e8890c0ab49b33c11 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if [[ $# -eq 0 ]]
then
    echo "$(mpc volume | tr -d 'volume: ' | tr -d '%')"
elif [[ $# -eq 1 ]]
then
    playerctl --player=spotify volume "$(echo $1 | tr -d '%')"
fi