home/.bin/mpc/mpc-i3-shuffle

7 lines
245 B
Plaintext
Raw Normal View History

#!/bin/bash
if [[ "$(mpc random)" == *"random: on"* ]]; then
notify-send -a "Mopidy" -u low -t 1 "Shuffle On" "Songs will be played in random order"
else
notify-send -a "Mopidy" -u low -t 1 "Shuffle Off" "Songs will be played sequentially"
fi