-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmpd-control.20s.sh
More file actions
executable file
·23 lines (20 loc) · 934 Bytes
/
mpd-control.20s.sh
File metadata and controls
executable file
·23 lines (20 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# <bitbar.title>mpd-control</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Slamet Kristanto</bitbar.author>
# <bitbar.author.github>drselump14</bitbar.author.github>
# <bitbar.desc>MPD control (mopidy spotify, mopidy soundcloud , etc)</bitbar.desc>
# <bitbar.image>https://www.dropbox.com/s/cgkjb7hv6s1yx1a/Screenshot%202017-02-08%2020.40.02.png?raw=1</bitbar.image>
# <bitbar.dependencies>mpd, mpc</bitbar.dependencies>
count="$( /usr/local/bin/mpc | wc -l )"
if [ "$count" -gt 2 ]
then
echo "$(/usr/local/bin/mpc | head -1)"
echo "---"
echo "Play/Pause | bash='/usr/local/bin/mpc' param1=toggle terminal=false length=25 size=12"
echo "Next | bash=/usr/local/bin/mpc param1=next terminal=false length=25 size=12"
echo "Previous | bash=/usr/local/bin/mpc param1=prev terminal=false length=25 size=12"
echo "Open ncmpcpp | bash=/usr/local/bin/ncmpcpp terminal=true"
else
echo ""
fi