Watches MPD for song change and takes action
- Gathers detailed song info
- Searches filesystem and online for cover art
- Configurable, independent actions
- zsh
- mpc
- curl
- jq
- imagemagick
- libnotify
- cava (optional)
- feh (optional)
Manual:
git clone https://github.com/jeffmhubbard/mpnotd-zsh
cd mpnotd-zsh
sudo make install
To start from terminal:
mpnotd --time 20 -u low --cava -w cur.txt
-C, --config specify path to config file
-p, --popup enable notifications (defaults on)
-t, --time time to display popup (in seconds)
-u, --urgency urgency level (low, normal, critical)
-v, --cava enable cava color
-c, --cover enable cover mode
-w, --write enable output file
-D, --debug verbose output
-h, --help print help
# ~/.config/mpnotd/mpnotd.rc
# number of days to cache cover art for
CACHE_DAYS=10
# set title of popup
POPUP_SUBJECT=" Now Playing"
# (if set) format popup body
POPUP_BODY="%title%\n%By %artist%\nFrom %album% (%date%)"
# time to display popup (seconds)
POPUP_DURATION=30
# popup urgency (low, normal, critical)
POPUP_LEVEL=low
# change cava fg color based on cover art
CAVA_ENABLE=true
# (if set) palette to use instead of dominant color
CAVA_COLORS=(fc391f 31e722 eaec23 5833ff f935f8 14f0f0)
# show cover art on desktop
COVER_ENABLE=true
# cover art size
COVER_SIZE=200x200
# cover art position
COVER_POSITION=+20+20
# (if set) time to display cover art
COVER_DURATION=10
# write current song info to file
WRITE_ENABLE=true
# (if set) key-value separator
WRITE_SEP="|"
For floating cover art with i3
for_window [class="mpnotd"] floating enable
no_focus [class="mpnotd"]