diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 19:17:54 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 19:17:54 +0100 |
commit | 0a8efa37e85ad3fc0b633d5e92198b09cd7fd555 (patch) | |
tree | 30001a3c2a2444f204b7f80e36fd93cc0b9c7ff8 /bin/guiscripts | |
parent | 3d6ee0856e4477378e8237f11f6f74eec9754488 (diff) | |
parent | 1c632029d7a02742b0cc740b6984ce139429b88b (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/slmpd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/guiscripts/slmpd b/bin/guiscripts/slmpd index 96d9cd1..a102ba0 100755 --- a/bin/guiscripts/slmpd +++ b/bin/guiscripts/slmpd @@ -1,6 +1,7 @@ #!/bin/sh if mpc > /dev/null 2>&1 then - test "`mpc status %totaltime%`" = "0:00" || - echo -n " $(mpc status "%currenttime%/%totaltime%") $(mpc -f "[[%title%]|%file%]" | head -n -2) " + if [ "$(mpc status "%totaltime%")" != "0:00" ]; then + printf '%s %s' "$(mpc status "%currenttime%/%totaltime%")" "$(mpc -f "[[%title%]|%file%]" | head -n -2)" + fi fi |