diff options
| author | Henry Riehl <henry.riehl@btinternet.com> | 2025-11-17 13:40:18 +0000 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-21 14:36:10 +0300 |
| commit | 07b387df46f36b88548b7067560b25c38dc3a5b4 (patch) | |
| tree | dce104a2cc30e1bebcb5c54a2f827e42cbdbbdb2 | |
| parent | 98006a8dbae3ffc629891c463651968c01370c97 (diff) | |
| download | niri-07b387df46f36b88548b7067560b25c38dc3a5b4.tar.gz niri-07b387df46f36b88548b7067560b25c38dc3a5b4.tar.bz2 niri-07b387df46f36b88548b7067560b25c38dc3a5b4.zip | |
cap the max volume to 100% (1.0)
| -rw-r--r-- | resources/default-config.kdl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 69afe99d..0af16c7f 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -374,7 +374,8 @@ binds { // Example volume keys mappings for PipeWire & WirePlumber. // The allow-when-locked=true property makes them work even when the session is locked. // Using spawn-sh allows to pass multiple arguments together with the command. - XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; } + // "-l 1.0" limits the volume to 100%. + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; } XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; } XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; } XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; } |
