Go to file
ImgBotApp 3f8a91e6ca
[ImgBot] Optimize images
/extra/kunst_logo.png -- 1.20kb -> 0.94kb (21.46%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-01-22 05:24:41 +00:00
extra [ImgBot] Optimize images 2020-01-22 05:24:41 +00:00
.SRCINFO add PKGBUILD 2019-02-16 20:40:14 +01:00
.editorconfig Fix indentation inconsistency 2019-02-17 12:05:53 +00:00
LICENSE Initial commit 2019-02-12 19:50:25 +01:00
Makefile Add Makefile 2019-02-17 12:57:31 +00:00
PKGBUILD add PKGBUILD 2019-02-16 20:40:14 +01:00
README.md added mpd as dependency 2019-12-27 12:02:42 +00:00
kunst added mpd to dependencies 2019-12-27 12:03:21 +00:00

README.md


Download and display album art or display embedded album art

kunst is a deamon that extracts the album art from the songs playing in mpd and displays them in the a little window. It doesn't loop on a timer, instead it waits for mpd to send a player event. When it receives a player event, it wakes up and extracts the album art of the current playing track. This makes kunstreally lightweight and makes it idle at ~0% CPU usage. If there no embbeded album art, it will try to fetch the album art from the internet.

Dependencies

  • sxiv
  • imagemagick
  • bash
  • ffmpeg
  • mpc
  • jq
  • mpd

Installation

Install using make

# Clone the repo
$ git clone https://github.com/sdushantha/kunst

# Change your current directory to kunst
$ cd kunst

# Install it
$ sudo make install

Install it locally

# Download the kunst source code, save as kunst
# and make it executeable
$ curl -L git.io/raw-kunst > kunst && chmod +x kunst

# Then move kunst to somewhere in your $PATH
# Here is an example
$ mv kunst ~/script/

Install from the AUR

AUR (maintained by networkpanic)

Usage

$ kunst --help
usage: kunst [-h] [--size px] [--music_dir path/to/dir] [--silent] [--version]

┬┌─┬ ┬┌┐┌┌─┐┌┬┐
├┴┐│ ││││└─┐ │
┴ ┴└─┘┘└┘└─┘ ┴
Download and display album art or display embedded album art

optional arguments:
   -h, --help            show this help message and exit
   --size                what size to display the album art in
   --position            The position where the album art should be displayed
   --music_dir           the music directory which MPD plays from
   --silent              dont show the output
   --version             show the version of kunst you are using

Configure

You can configure kunst through environment variables.

# The size of the album art to be displayed
export KUNST_SIZE="250x250"

# The position where the album art should be displayed
export KUNST_POSITION="+0+0"

# Where your music is located
export KUNST_MUSIC_DIR="/home/username/Music/"

License

MIT License

Copyright © 2019 Siddharth Dushantha