Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sbradnick
neofetch
mpc-current.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mpc-current.diff of Package neofetch
--- neofetch.orig 2022-10-13 13:28:27.873782000 -0400 +++ neofetch 2022-10-13 13:36:26.415644675 -0400 @@ -3004,14 +3004,16 @@ : "${artist:=Unknown Artist}" "${album:=Unknown Album}" "${title:=Unknown Song}" # Display Artist, Album and Title on separate lines. - if [[ "$song_shorthand" == "on" ]]; then - prin "Artist" "$artist" - prin "Album" "$album" - prin "Song" "$title" - else - song="${song_format/\%artist\%/$artist}" - song="${song/\%album\%/$album}" - song="${song/\%title\%/$title}" + if [[ ! -z "$(mpc current)" ]]; then + if [[ "$song_shorthand" == "on" ]]; then + prin "Artist" "$artist" + prin "Album" "$album" + prin "Song" "$title" + else + song="${song_format/\%artist\%/$artist}" + song="${song/\%album\%/$album}" + song="${song/\%title\%/$title}" + fi fi }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor