summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2021-05-15 19:32:01 +0400
committerAndrew <saintruler@gmail.com>2021-05-15 19:32:01 +0400
commitd963285b69e05530e7bf873d16ab4e5dee92fb78 (patch)
tree47be5e7bd75ea092b2e70afef35e624803322f1c
parentb2329100ed0e848442ab11d58786ce8772ddfbc5 (diff)
Added script for starting ncmpcpp
-rwxr-xr-x.local/bin/scripts/music14
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/scripts/music b/.local/bin/scripts/music
new file mode 100755
index 0000000..f2e8697
--- /dev/null
+++ b/.local/bin/scripts/music
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Possible servers
+hosts="localhost
+desktop.lan
+laptop.lan"
+
+if [ -z "$1" ]; then
+ host=$(printf "$hosts" | dmenu -p "Choose host:" -i -l 5)
+else
+ host="$1"
+fi
+ncmpcpp -h $host
+