mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
2
neofetch
2
neofetch
@@ -1192,7 +1192,7 @@ getmemory () {
|
|||||||
# Song {{{
|
# Song {{{
|
||||||
|
|
||||||
getsong () {
|
getsong () {
|
||||||
if pgrep "mpd" >/dev/null 2>&1; then
|
if mpc version >/dev/null 2>&1; then
|
||||||
song="$(mpc current 2>/dev/null)"
|
song="$(mpc current 2>/dev/null)"
|
||||||
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user