Merge pull request #749 from foonathan/master

Support MPRIS loop and volume change
This commit is contained in:
th-ch
2022-08-21 22:53:29 +02:00
committed by GitHub
4 changed files with 102 additions and 21 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, "="),