mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 23:34:57 +08:00
Former-commit-id: 46c2bf7d26
Former-commit-id: ec0b4e689f3f8e97d837848929a1a6a9e45f779b
Former-commit-id: 19f055447f5fd666a270a51cf98b05d70716e826
21 lines
452 B
Bash
Executable file
21 lines
452 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Get mpd state
|
|
MPDSTATE="$(mpc | head -2 | tail -1 | awk '{print $1}')"
|
|
|
|
if [[ "$MPDSTATE" != "[playing]" ]]; then
|
|
# echo " ·| "
|
|
# echo ""
|
|
# echo "||"
|
|
# echo ""
|
|
echo ""
|
|
else
|
|
# echo " ·> "
|
|
# echo ""
|
|
# echo ""
|
|
# echo ">>"
|
|
# echo ""
|
|
echo ""
|
|
SONG="$(mpc | head -1)"
|
|
notify-send "Now playing:" "$SONG" -i ~/.icons/oomox-wally-flat/actions/scalable/player_play.svg --replace-file /tmp/mpd_notification_id
|
|
fi
|