diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-08-30 19:22:59 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-08-30 19:22:59 +0200 |
| commit | 19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch) | |
| tree | f234cad1bdad88114a63c9702144da487024967a /.config/polybar/scripts/cmus.sh | |
| parent | 5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff) | |
| download | dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip | |
Linux-specific dotfiles
Diffstat (limited to '.config/polybar/scripts/cmus.sh')
| -rwxr-xr-x | .config/polybar/scripts/cmus.sh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/.config/polybar/scripts/cmus.sh b/.config/polybar/scripts/cmus.sh deleted file mode 100755 index 2f42c63..0000000 --- a/.config/polybar/scripts/cmus.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -prepend_zero () { - seq -f "%02g" $1 $1 -} - -artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) - -if [[ $artist = *[!\ ]* ]]; then - song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) - position=$(cmus-remote -C status | grep position | cut -c 10-) - minutes1=$(prepend_zero $(($position / 60))) - seconds1=$(prepend_zero $(($position % 60))) - duration=$(cmus-remote -C status | grep duration | cut -c 10-) - minutes2=$(prepend_zero $(($duration / 60))) - seconds2=$(prepend_zero $(($duration % 60))) - echo -n "$artist - $song " -else - echo -fi - -#prepend_zero () { -# seq -f "%02g" $1 $1 -#} -# -#artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) -# -#if [[ $artist = *[!\ ]* ]]; then -# song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) -# position=$(cmus-remote -C status | grep position | cut -c 10-) -# minutes1=$(prepend_zero $(($position / 60))) -# seconds1=$(prepend_zero $(($position % 60))) -# duration=$(cmus-remote -C status | grep duration | cut -c 10-) -# minutes2=$(prepend_zero $(($duration / 60))) -# seconds2=$(prepend_zero $(($duration % 60))) -# echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" -#else -# echo -#fi |
