gvc14 / nowplaying Goto Github PK
View Code? Open in Web Editor NEWConky config file that shows now-playing song title as well as the artist name.
Conky config file that shows now-playing song title as well as the artist name.
This is a great project! Unfortunately, I have a problem.
I changed the artist file to the following.
#!/usr/bin/env sh
# NAME artist
# NEEDS dash
# FROM https://raw.githubusercontent.com/gvc14/NowPlaying/master/artist.sh
# shellcheck disable=SC2005
set -o nounset
export LC_ALL=C # Specifies locale as ANSI C, disabling Unicode support. An optimisation.
Bool=$(qdbus org.mpris.MediaPlayer2.lollypop /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player PlaybackStatus)
if [ "$Bool" = 'Playing' ];
then
echo "$(qdbus org.mpris.MediaPlayer2.lollypop /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | awk '/xesam:artist:/ { print}' | sed -e "s/^xesam:artist://")"
fi
I changed the song file to the following.
#!/usr/bin/env sh
# NAME song_exec
# NEEDS dash
# FROM https://raw.githubusercontent.com/gvc14/NowPlaying/master/title.sh
# shellcheck disable=SC2005
set -o nounset
export LC_ALL=C # Specifies locale as ANSI C, disabling Unicode support. An optimisation.
Bool=$(qdbus org.mpris.MediaPlayer2.lollypop /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player PlaybackStatus)
if [ "$Bool" = 'Playing' ];
then
echo "$(qdbus org.mpris.MediaPlayer2.lollypop /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | awk '/xesam:title:/ { print}' | sed -e "s/^xesam:title://")"
fi
But when I run Conky I see:
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
qdbus: could not find a Qt installation of ''
My system
Mint 20 Cinnamon (which uses GTK by default but can use QT applications)
Conky 1.11.6_pre
Music player: lollipop 1.3.6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.