diff --git a/README.md b/README.md index 379de77a..4cb93454 100644 --- a/README.md +++ b/README.md @@ -217,9 +217,9 @@ If you have not created an rc.xml config file, default bindings will be: | `super`-`mouse-right` | resize window | `super`-`arrow` | resize window to fill half the output | `alt`-`space` | show the window menu -| `XF86_AudioLowerVolume` | amixer sset Master 5%- -| `XF86_AudioRaiseVolume` | amixer sset Master 5%+ -| `XF86_AudioMute` | amixer sset Master toggle +| `XF86_AudioLowerVolume` | pactl set-sink-volume @DEFAULT_SINK@ -5% +| `XF86_AudioRaiseVolume` | pactl set-sink-volume @DEFAULT_SINK@ +5% +| `XF86_AudioMute` | pactl set-sink-mute @DEFAULT_SINK@ toggle | `XF86_MonBrightnessUp` | brightnessctl set +10% | `XF86_MonBrightnessDown` | brightnessctl set 10%- diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index 09f7b3eb..9abc89ba 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -845,7 +845,7 @@ References: 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. ** diff --git a/docs/rc.xml.all b/docs/rc.xml.all index bbec9d0b..bdb3e803 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -292,13 +292,13 @@ - + - + - + diff --git a/include/config/default-bindings.h b/include/config/default-bindings.h index 9d42d237..160239cb 100644 --- a/include/config/default-bindings.h +++ b/include/config/default-bindings.h @@ -88,21 +88,21 @@ static struct key_combos { .action = "Execute", .attributes[0] = { .name = "command", - .value = "amixer sset Master 5%-", + .value = "pactl set-sink-volume @DEFAULT_SINK@ -5%", }, }, { .binding = "XF86_AudioRaiseVolume", .action = "Execute", .attributes[0] = { .name = "command", - .value = "amixer sset Master 5%+", + .value = "pactl set-sink-volume @DEFAULT_SINK@ +5%", }, }, { .binding = "XF86_AudioMute", .action = "Execute", .attributes[0] = { .name = "command", - .value = "amixer sset Master toggle", + .value = "pactl set-sink-mute @DEFAULT_SINK@ toggle", }, }, { .binding = "XF86_MonBrightnessUp",