Small collection of scripts for controlling MPD, usually using mpc.
Note: All desktop notifications are set to replace each other. This means that, for example, spamming the mpd-playpause
script will NOT flood your screen with notifications.
Uses mpc to skip to the next song.
Calls the songinfo
script to display the information of the next song in the form of a desktop notification. You will probably need to change the path to the songinfo script.
Uses mpc to toggle playback. Sends a notification with the action performed.
Dunst notification daemon, Catppuccin color scheme. (Note: Nerd Font icons are used for play/pause icons in these screenshots. The script in this repo have play/pause emojis instead.)
Takes one argument, formatted as [+-]. For example mpd-volume +5
will increase volume by 5%, and mpd-volume -2
will decrease volume by 2%. Script will exit with an error code if this argument is blank. Will send a notification with a bar showing the new volume.
Dunst notification daemon, Catppuccin color scheme.
From the ArchWiki article on ncmpcpp. Shows a desktop notification with the current playing track, with album art. Edit musicdir
and previewdir
to match your setup. Make sure previewdir
exists, or else album are will not work.