qs: support vol + prev + next controls
This commit is contained in:
parent
edbf7a4068
commit
755a58c50c
2 changed files with 14 additions and 0 deletions
|
|
@ -198,6 +198,10 @@ bind = ,XF86AudioPlay, exec, qs -c shell ipc call mpris playPause
|
||||||
bind = ,XF86AudioNext, exec, qs -c shell ipc call mpris next
|
bind = ,XF86AudioNext, exec, qs -c shell ipc call mpris next
|
||||||
bind = ,XF86AudioPrev, exec, qs -c shell ipc call mpris previous
|
bind = ,XF86AudioPrev, exec, qs -c shell ipc call mpris previous
|
||||||
bind = $mod, m, exec, qs -c shell ipc call audio toggleMic
|
bind = $mod, m, exec, qs -c shell ipc call audio toggleMic
|
||||||
|
bind = ,XF86AudioRaiseVolume, exec, qs -c shell ipc call audio volUp
|
||||||
|
bind = ,XF86AudioLowerVolume, exec, qs -c shell ipc call audio volDown
|
||||||
|
bind = SHIFT,XF86AudioNext, exec, qs -c shell ipc call mpris next
|
||||||
|
bind = SHIFT,XF86AudioPrev, exec, qs -c shell ipc call mpris previous
|
||||||
|
|
||||||
bind = $mod, h, hy3:movefocus, l
|
bind = $mod, h, hy3:movefocus, l
|
||||||
bind = $mod, j, hy3:movefocus, d
|
bind = $mod, j, hy3:movefocus, d
|
||||||
|
|
|
||||||
|
|
@ -49,5 +49,15 @@ BarWidgetInner {
|
||||||
const source = Pipewire.defaultAudioSource;
|
const source = Pipewire.defaultAudioSource;
|
||||||
source.audio.muted = !source.audio.muted;
|
source.audio.muted = !source.audio.muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function volUp(): void {
|
||||||
|
const sink = Pipewire.defaultAudioSink;
|
||||||
|
sink.audio.volume += 0.05;
|
||||||
|
}
|
||||||
|
|
||||||
|
function volDown(): void {
|
||||||
|
const sink = Pipewire.defaultAudioSink;
|
||||||
|
sink.audio.volume -= 0.05;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue