Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
caeb66b
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
madd
18 lines · 274 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
3
madd
()
{
4
queue
="$(mpc playlist)"
5
if
[
-
z
"$queue"
]
;
then
6
mpc insert
"$filename"
7
mpc play
8
else
9
mpc insert
"$filename"
10
mpc next
11
fi
12
}
13
14
filename
=$(mpc listall | dmenu -i -l 30)
15
if
[
-
n
"$filename"
]
;
then
16
madd
17
fi
18