mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
4
neofetch
4
neofetch
@@ -1332,6 +1332,10 @@ get_song() {
|
|||||||
song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet /net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\
|
song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet /net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\
|
||||||
awk -F'"' '/artist/ {getline; a=$2} /title/ {getline; t=$2} END{print a " - " t}')"
|
awk -F'"' '/artist/ {getline; a=$2} /title/ {getline; t=$2} END{print a " - " t}')"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
mpc >/dev/null 2>&1 && song="$(mpc current)"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[[ "$(trim "$song")" = "-" ]] && unset -v song
|
[[ "$(trim "$song")" = "-" ]] && unset -v song
|
||||||
|
|||||||
Reference in New Issue
Block a user