Code: Select all
#!/bin/bash
#
sleep 5
cd $HOME/.conky
conky -c conkyrc &
exit 0
I will use this procedure in all scripts from now on. The scripts for the Now Playing Conky have already been changed accordingly.
The Now Playing Conky only works with mpris-capable players. With some players you have to activate mpris manually, e.g. qmmp:
qdbus must be installed so that mpris data can be queried:
Code: Select all
sudo apt install qdbus
Code: Select all
sudo apt install gridsite-clients
Code: Select all
qdbus org.mpris.MediaPlayer2.$Player /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata
Code: Select all
qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata
Code: Select all
bitrate: 128
mpris:artUrl: file:///tmp/clementine-art-tOEtVZ.jpg
mpris:length: 230000000
mpris:trackid: /org/clementineplayer/Clementine/Track/90
xesam:album: Bravo Hits 17
xesam:albumArtist: Various Artists
xesam:artist: Maggie Reilly
xesam:autoRating: 50
xesam:contentCreated: 2023-08-09T22:23:26
xesam:discNumber: 2
xesam:genre: Techno
xesam:lastUsed: 2023-03-21T22:14:50
xesam:title: Listen To Yours Hearth
xesam:trackNumber: 11
xesam:url: file:///home/ralf/Musik/Favoriten/Maggie Reilly - Listen To Yours Hearth.mp3
xesam:useCount: 1
year: 1997
Code: Select all
qdbus org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata
Code: Select all
mpris:length: 49128000
mpris:trackid:
xesam:title: BOOMTOWN RATS - I DON'T LIKE MONDAYS
xesam:url: http://live6.infonetmedia.si/Europa05
To display the radio info I would make another Now Paying Conky. This one is unsuitable for that.
Variationen now.lua
Remove frame: comment out Line 146 ( draw_bg(cr,color,alpha,typ))
Rounded corners: Line 36 (local corner_r=20) 0 for no rounding
Remove Background: comment out Line 144 (draw_bg(cr,color,alpha,typ) ScriptS: https://gist.github.com/rdschmidt/8c04a ... 040d41f7c6
Note for testing: you can move any Conky window on the display by holding down the ALT key and left mouse button.