Support MPRIS loop

This commit is contained in:
Jonathan Müller
2022-06-14 15:45:58 +02:00
parent b458925aa6
commit 6e1c50ede1
3 changed files with 44 additions and 1 deletions

View File

@ -20,7 +20,10 @@ module.exports = (win) => {
go1sBack: () => pressKey(win, "h", ["shift"]),
go1sForward: () => pressKey(win, "l", ["shift"]),
shuffle: () => pressKey(win, "s"),
switchRepeat: () => pressKey(win, "r"),
switchRepeat: (n = 1) => {
for (let i = 0; i != n; ++i)
pressKey(win, "r");
},
// General
volumeMinus10: () => pressKey(win, "-"),
volumePlus10: () => pressKey(win, "="),