Volume control with mouse
This commit is contained in:
parent
2627eda709
commit
54f0e0bbc5
|
|
@ -260,9 +260,10 @@ in {
|
||||||
XF86AudioMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
XF86AudioMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||||
XF86AudioMicMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
XF86AudioMicMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||||
|
|
||||||
// Horizontal mouse scroll controls volume
|
// Ctrl + horizontal mouse scroll controls volume
|
||||||
WheelScrollRight cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%+" "--limit" "1.0"; }
|
// (unmodified WheelScroll binds capture the whole wheel in niri and break normal scrolling)
|
||||||
WheelScrollLeft cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%-"; }
|
Ctrl+Alt+WheelScrollRight cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%+" "--limit" "1.0"; }
|
||||||
|
Ctrl+Alt+WheelScrollLeft cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%-"; }
|
||||||
|
|
||||||
// Mod + horizontal scroll moves between windows (columns) left/right
|
// Mod + horizontal scroll moves between windows (columns) left/right
|
||||||
Mod+WheelScrollRight cooldown-ms=200 { focus-column-right; }
|
Mod+WheelScrollRight cooldown-ms=200 { focus-column-right; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue