diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-25 16:31:51 -0800 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-25 16:31:51 -0800 |
| commit | c370b77862f83076c44daa92e44653065253d9af (patch) | |
| tree | 4717658046f580663163303d0f239576d18fbaea | |
| parent | 1f7c60f62a49c15de2f14bd87cc4dbf856fe18ce (diff) | |
updated
| -rwxr-xr-x[l---------] | ncmpcpp-ueberzug | 19 | ||||
| -rwxr-xr-x | setbg | 2 |
2 files changed, 19 insertions, 2 deletions
diff --git a/ncmpcpp-ueberzug b/ncmpcpp-ueberzug index 1f74a45..028baa0 120000..100755 --- a/ncmpcpp-ueberzug +++ b/ncmpcpp-ueberzug @@ -1 +1,18 @@ -/home/tyler/.config/ncmpcpp/ncmpcpp-ueberzug/ncmpcpp-ueberzug
\ No newline at end of file +#!/bin/sh +export FIFO_UEBERZUG="/tmp/mpd-ueberzug-${PPID}" + +cleanup() { + rm "$FIFO_UEBERZUG" 2>/dev/null + rm /tmp/mpd_cover.jpg 2>/dev/null + pkill -P $$ 2>/dev/null + pkill ncmpcpp_cover_art.sh +} + +pkill -P $$ 2>/dev/null +rm "$FIFO_UEBERZUG" 2>/dev/null +mkfifo "$FIFO_UEBERZUG" >/dev/null +trap cleanup EXIT 2>/dev/null +tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser simple >/dev/null 2>&1 & + +ncmpcpp +cleanup @@ -30,4 +30,4 @@ else [ -f "$zathuraconf.bak" ] && unlink "$zathuraconf" && mv "$zathuraconf.bak" "$zathuraconf" fi -xwallpaper --zoom "$bgloc" +xwallpaper --maximize "$bgloc" |
