From 54f0e0bbc5c174530febdf893be812faa59b1de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Tue, 11 Aug 2026 10:20:39 +0200 Subject: [PATCH] Volume control with mouse --- home/niri/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home/niri/default.nix b/home/niri/default.nix index 7524576..674be92 100644 --- a/home/niri/default.nix +++ b/home/niri/default.nix @@ -260,9 +260,10 @@ in { XF86AudioMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } XF86AudioMicMute { spawn "${wpctl}" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } - // Horizontal mouse scroll controls volume - WheelScrollRight cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%+" "--limit" "1.0"; } - WheelScrollLeft cooldown-ms=10 { spawn "${wpctl}" "set-volume" "@DEFAULT_AUDIO_SINK@" "1%-"; } + // Ctrl + horizontal mouse scroll controls volume + // (unmodified WheelScroll binds capture the whole wheel in niri and break normal scrolling) + 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+WheelScrollRight cooldown-ms=200 { focus-column-right; }