mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
Use 'wpctl -l' in wireplumber to limit volume, unlike pactl
parent
65664f9ffb
commit
b37806066d
7
Home.md
7
Home.md
|
@ -766,6 +766,13 @@ bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@
|
|||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
```
|
||||
|
||||
If you use wireplumber, seting `-l` flag in `wpctl` can be used to prevent the volume from exceeding a certain level, which is not a feature offered by `pactl`. This example ensures that the volume does not surpass 120% :
|
||||
|
||||
```
|
||||
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
|
||||
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2
|
||||
```
|
||||
|
||||
[SetEnvPage]: https://github.com/swaywm/sway/wiki/Setting-Environmental-Variables
|
||||
|
||||
### My screen isn't detected when plugged in
|
||||
|
|
Loading…
Reference in a new issue