diff options
| author | Andrew <saintruler@gmail.com> | 2021-05-15 19:32:01 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2021-05-15 19:32:01 +0400 |
| commit | d963285b69e05530e7bf873d16ab4e5dee92fb78 (patch) | |
| tree | 47be5e7bd75ea092b2e70afef35e624803322f1c /.local/bin | |
| parent | b2329100ed0e848442ab11d58786ce8772ddfbc5 (diff) | |
Added script for starting ncmpcpp
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/scripts/music | 14 |
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 + |