Add mpdrandom script and bind it
This commit is contained in:
parent
bd1a08a16e
commit
b4a8386fe9
@ -15,9 +15,11 @@ super + a; {g,k,l,i}
|
||||
{gimp,keepassxc,libreoffice,inkscape}
|
||||
|
||||
super + {_,ctrl +} m
|
||||
rofi-mpd {-a,-s}
|
||||
rofi-mpd {-a,-s} && refbar
|
||||
super + apostrophe
|
||||
mpdqueue
|
||||
XF86Tools
|
||||
mpdrandom
|
||||
{Prior,super + x}
|
||||
slock
|
||||
super + z
|
||||
|
13
.local/bin/scripts/mpdrandom
Executable file
13
.local/bin/scripts/mpdrandom
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Add random song to mpd queue.
|
||||
|
||||
song="$(mpc listall | shuf -r -n 1)"
|
||||
|
||||
mpc add "$song"
|
||||
|
||||
notify-send -u normal "MPD added random song" "$(
|
||||
mpc -f "%artist% - %title%" find filename "$song"
|
||||
)"
|
||||
|
||||
mpc play>/dev/null
|
Loading…
x
Reference in New Issue
Block a user