notable changes: - rename `bt-connect` to `bt_connect` - rename `music` to `media` and make it generic instead of checking Spotify - make separate script to set background to a preset black image - make all shebangs "#!/usr/bin/env sh"
10 lines
222 B
Bash
Executable File
10 lines
222 B
Bash
Executable File
#!/usr/bin/env sh
|
|
choice=$(mpc playlist | dmenu -i)
|
|
if [[ -n "$choice" ]]
|
|
then
|
|
item=$(echo $choice | awk '{split($0, a, "-");print a[2]}' | cut -c2-)
|
|
mpc searchplay title "$item"
|
|
else
|
|
echo "No choice given"
|
|
fi
|