aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/music.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scripts/music.sh')
-rwxr-xr-xscripts/scripts/music.sh16
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
3while getopts abt options
4do
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
16done