mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
song: Fix bug with player not being found.
This commit is contained in:
7
neofetch
7
neofetch
@@ -1408,10 +1408,9 @@ get_memory() {
|
||||
|
||||
get_song() {
|
||||
player="$(ps x | awk '!(/ awk|Helper|Cache|ibus|indicator/) && /mpd|mopidy|cmus|mocp|spotify|\
|
||||
Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|\
|
||||
xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|\
|
||||
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo/
|
||||
{printf $5 " " $6; exit}')"
|
||||
Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|\
|
||||
xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|\
|
||||
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo/ {printf $5 " " $6; exit}')"
|
||||
|
||||
get_song_dbus() {
|
||||
# Multiple players use an almost identical dbus command to get the information.
|
||||
|
||||
Reference in New Issue
Block a user