diff --git a/README.md b/README.md index 4604569..4e621c2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
Made with :heart: by @gamehelp16 and @Rayzr522
+Made with :heart: by @gamehelp16, @Rayzr522 and @jgabriel98
> **Now Clocking** is a Conky widget which shows a Monstercat style Now Playing when music is played via Spotify or cmus, or a clock when no music is playing. @@ -16,8 +16,6 @@ - [Supported Players](#supported-players) - [Installation](#installation) - [FAQ](#faq) -- [Credits](#credits) -- [Join Me](#join-me) ## Requirements @@ -72,13 +70,3 @@ $ path/to/now-clocking/start.sh > **Why are there 2 Conky widgets?** Originally, this had to do with weird transparency issues in Conky that required a non-transparent album artwork. However, that has long since been patched in Conky. The widgets have remained separated, however, so as to make aligning everything easier, especially since one widget functions both as the track info *and* a clock. - -## Credits - -Huge props to the original creator, [@gamehelp16](https://github.com/gamehelp16). I used this script back in 2017/2018 and rediscovered it in 2020, and decided to rework it to be more portable, efficient, and updated to modern Conky config standards. - -Also huge props to Hoefler & Frere-Jones for the wonderful Gotham fonts, and Julieta Ulanovsky (and crew) for the slick Montserrat font. - -## Join Me - -[](https://rayzr.dev/join) diff --git a/conky/np.lua b/conky/np.lua index 7dc8adc..ce0c749 100644 --- a/conky/np.lua +++ b/conky/np.lua @@ -31,7 +31,7 @@ conky.config = { }; conky.text = [[ -${if_running spotify}${color #fff}${font Gotham Book:pixelsize=18}NOW PLAYING: +${if_match "" != "${exec playerctl -p spotify status}}${color #fff}${font Gotham Book:pixelsize=18}NOW PLAYING: ${color #fff}${font Gotham Book:pixelsize=15} ${color #fff}${font Gotham:style=bold:pixelsize=44} ${font Gotham:style=bold:pixelsize=46}${exec playerctl -p spotify metadata artist}${font Gotham:style=bold:pixelsize=10} ${color #fff}${font Gotham Book:pixelsize=44} ${font Gotham Book:pixelsize=23}${exec playerctl -p spotify metadata title} diff --git a/conky/npart.lua b/conky/npart.lua index b318a01..9a0e4e8 100644 --- a/conky/npart.lua +++ b/conky/npart.lua @@ -26,7 +26,7 @@ conky.config = { }; conky.text = [[ -${if_running spotify}${exec ./scripts/fetch-art spotify} +${if_match "" != "${exec playerctl -p spotify status}}${exec ./scripts/fetch-art spotify} ${image ./data/spotify.png -p 0,0 -s 125x125 -n} ${else}${if_match "" != "${exec playerctl -p vlc status}"}${exec ./scripts/fetch-art vlc} ${image ./data/vlc.png -p 0,0 -s 125x125 -n}