[modules/cmus] Add controls for cmus (next/prev/shuffle/repeat)

Add controls that allow the user to switch to the next and previous song
in cmus, toggle shuffle and repeat. Pause/play is toggled by clicking on
the song title itself.

fixes #5
This commit is contained in:
Tobi-wan Kenobi 2016-11-12 12:11:42 +01:00
parent a33cb1d7cb
commit dead54ed1f
7 changed files with 82 additions and 7 deletions

View file

@ -37,6 +37,18 @@
"stopped": {
"prefix": " [] "
}
},
"prev": {
"prefix": " |< "
},
"next": {
"prefix": " >| "
},
"shuffle": {
"states": { "on": { "prefix": " S " }, "off": { "prefix": " [s] " } }
},
"repeat": {
"states": { "on": { "prefix": " R " }, "off": { "prefix": " [r] " } }
}
},
"pasink": {

View file

@ -58,6 +58,18 @@
"stopped": {
"prefix": "  "
}
},
"prev": {
"prefix": "  "
},
"next": {
"prefix": "  "
},
"shuffle": {
"states": { "on": { "prefix": "  " }, "off": { "prefix": "  " } }
},
"repeat": {
"states": { "on": { "prefix": "  " }, "off": { "prefix": "  " } }
}
},
"pasink": {

View file

@ -59,6 +59,18 @@
"stopped": {
"prefix": "  "
}
},
"prev": {
"prefix": "  "
},
"next": {
"prefix": "  "
},
"shuffle": {
"states": { "on": { "prefix": "  " }, "off": { "prefix": "  " } }
},
"repeat": {
"states": { "on": { "prefix": "  " }, "off": { "prefix": "  " } }
}
},
"pasink": {

View file

@ -58,6 +58,18 @@
"stopped": {
"prefix": " [] "
}
},
"prev": {
"prefix": " |< "
},
"next": {
"prefix": " >| "
},
"shuffle": {
"states": { "on": { "prefix": " S " }, "off": { "prefix": " [s] " } }
},
"repeat": {
"states": { "on": { "prefix": " R " }, "off": { "prefix": " [r] " } }
}
},
"pasink": {