config: migrate from amixer to pactl

This commit is contained in:
daniel 2026-04-01 06:49:47 -03:00
parent 7be58fbaba
commit 7b63ab0165
4 changed files with 10 additions and 10 deletions

View file

@ -217,9 +217,9 @@ If you have not created an rc.xml config file, default bindings will be:
| `super`-`mouse-right` | resize window | `super`-`mouse-right` | resize window
| `super`-`arrow` | resize window to fill half the output | `super`-`arrow` | resize window to fill half the output
| `alt`-`space` | show the window menu | `alt`-`space` | show the window menu
| `XF86_AudioLowerVolume` | amixer sset Master 5%- | `XF86_AudioLowerVolume` | pactl set-sink-volume @DEFAULT_SINK@ -5%
| `XF86_AudioRaiseVolume` | amixer sset Master 5%+ | `XF86_AudioRaiseVolume` | pactl set-sink-volume @DEFAULT_SINK@ +5%
| `XF86_AudioMute` | amixer sset Master toggle | `XF86_AudioMute` | pactl set-sink-mute @DEFAULT_SINK@ toggle
| `XF86_MonBrightnessUp` | brightnessctl set +10% | `XF86_MonBrightnessUp` | brightnessctl set +10%
| `XF86_MonBrightnessDown` | brightnessctl set 10%- | `XF86_MonBrightnessDown` | brightnessctl set 10%-

View file

@ -845,7 +845,7 @@ References:
A-Space - show window menu A-Space - show window menu
``` ```
Audio and MonBrightness keys are also bound to amixer and Audio and MonBrightness keys are also bound to pactl and
brightnessctl, respectively. brightnessctl, respectively.
*<keyboard><repeatRate>* *<keyboard><repeatRate>*

View file

@ -292,13 +292,13 @@
<action name="ShowMenu" menu="client-menu" atCursor="no" /> <action name="ShowMenu" menu="client-menu" atCursor="no" />
</keybind> </keybind>
<keybind key="XF86_AudioLowerVolume"> <keybind key="XF86_AudioLowerVolume">
<action name="Execute" command="amixer sset Master 5%-" /> <action name="Execute" command="pactl set-sink-volume @DEFAULT_SINK@ -5%" />
</keybind> </keybind>
<keybind key="XF86_AudioRaiseVolume"> <keybind key="XF86_AudioRaiseVolume">
<action name="Execute" command="amixer sset Master 5%+" /> <action name="Execute" command="pactl set-sink-volume @DEFAULT_SINK@ +5%" />
</keybind> </keybind>
<keybind key="XF86_AudioMute"> <keybind key="XF86_AudioMute">
<action name="Execute" command="amixer sset Master toggle" /> <action name="Execute" command="pactl set-sink-mute @DEFAULT_SINK@ toggle" />
</keybind> </keybind>
<keybind key="XF86_MonBrightnessUp"> <keybind key="XF86_MonBrightnessUp">
<action name="Execute" command="brightnessctl set +10%" /> <action name="Execute" command="brightnessctl set +10%" />

View file

@ -88,21 +88,21 @@ static struct key_combos {
.action = "Execute", .action = "Execute",
.attributes[0] = { .attributes[0] = {
.name = "command", .name = "command",
.value = "amixer sset Master 5%-", .value = "pactl set-sink-volume @DEFAULT_SINK@ -5%",
}, },
}, { }, {
.binding = "XF86_AudioRaiseVolume", .binding = "XF86_AudioRaiseVolume",
.action = "Execute", .action = "Execute",
.attributes[0] = { .attributes[0] = {
.name = "command", .name = "command",
.value = "amixer sset Master 5%+", .value = "pactl set-sink-volume @DEFAULT_SINK@ +5%",
}, },
}, { }, {
.binding = "XF86_AudioMute", .binding = "XF86_AudioMute",
.action = "Execute", .action = "Execute",
.attributes[0] = { .attributes[0] = {
.name = "command", .name = "command",
.value = "amixer sset Master toggle", .value = "pactl set-sink-mute @DEFAULT_SINK@ toggle",
}, },
}, { }, {
.binding = "XF86_MonBrightnessUp", .binding = "XF86_MonBrightnessUp",