diff options
Diffstat (limited to 'scripts/scripts/music.sh')
-rwxr-xr-x | scripts/scripts/music.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/scripts/music.sh b/scripts/scripts/music.sh new file mode 100755 index 0000000..1de3bc0 --- /dev/null +++ b/scripts/scripts/music.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | while getopts abt options | ||
4 | do | ||
5 | case $options in | ||
6 | a) | ||
7 | cmus-remote -Q | grep tag\ artist\ | sed 's/tag artist //' | ||
8 | ;; | ||
9 | b) | ||
10 | cmus-remote -Q | grep tag\ album\ | sed 's/tag album //' | ||
11 | ;; | ||
12 | t) | ||
13 | cmus-remote -Q | grep tag\ title\ | sed 's/tag title //' | ||
14 | ;; | ||
15 | esac | ||
16 | done | ||