Giter Site home page Giter Site logo

jeffmhubbard / mpnotd-zsh Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.43 MB

:notes: :speech_balloon: MPD Notification Daemon (Zsh)

License: MIT License

Shell 95.14% Makefile 4.86%
mpd-notification-daemon zsh notification mpd-album-art cava cover-art

mpnotd-zsh's Introduction

MPD Notification Daemon

Demo Animation

Watches MPD for song change and takes action

Features

  • Gathers detailed song info
  • Searches filesystem and online for cover art
  • Configurable, independent actions
    • Popup - Display song info and cover via libnotify
    • Cava - Change cava color based on cover art
    • Cover - Display cover art on desktop with feh
    • Write - Write current song info to file for easy parsing

Requirements

  • zsh
  • mpc
  • curl
  • jq
  • imagemagick
  • libnotify
  • cava (optional)
  • feh (optional)

Installation

Manual:

git clone https://github.com/jeffmhubbard/mpnotd-zsh
cd mpnotd-zsh
sudo make install

Usage

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

Configuration

# ~/.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="|"

Notes

For floating cover art with i3

for_window [class="mpnotd"] floating enable
no_focus [class="mpnotd"]

mpnotd-zsh's People

Contributors

jeffmhubbard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.