From 02c54f3709548be8ee0abd97eeacbf05abcf68b5 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Tue, 1 Mar 2022 20:19:29 +0100 Subject: [PATCH] [StumpWM] Update volume keybinds Do not use amixer but pactl This allows to modify the volume of whichever the default output is instead of just the main output of the computer. --- org/config/stumpwm.org | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/org/config/stumpwm.org b/org/config/stumpwm.org index b9d331a..19459db 100644 --- a/org/config/stumpwm.org +++ b/org/config/stumpwm.org @@ -1783,18 +1783,18 @@ so that they are immediately accessible. Again, this isn’t technically media-related, but I’ll add keybinds for my screen’s backlight. #+name: media-top-level #+caption: Top-level media keys -| Keychord | Function | -|-----------------------+--------------------------------------| -| ~XF86AudioPlay~ | ~mpd-toggle-pause~ | -| ~XF86AudioPause~ | ~exec mpc pause~ | -| ~XF86AudioStop~ | ~mpd-stop~ | -| ~XF86AudioPrev~ | ~mpd-prev~ | -| ~XF86AudioNext~ | ~mpd-next~ | -| ~XF86AudioRaiseVolume~ | ~exec amixer -q set Master 2%+ unmute~ | -| ~XF86AudioLowerVolume~ | ~exec amixer -q set Master 2%- unmute~ | -| ~XF86AudioMute~ | ~exec amixer -q set Master 1+ toggle~ | -| ~XF86MonBrightnessDown~ | ~exec xbacklight -dec 2~ | -| ~XF86MonBrightnessUp~ | ~exec xbacklight -inc 2~ | +| Keychord | Function | +|-----------------------+------------------------------------------------| +| ~XF86AudioPlay~ | ~mpd-toggle-pause~ | +| ~XF86AudioPause~ | ~exec mpc pause~ | +| ~XF86AudioStop~ | ~mpd-stop~ | +| ~XF86AudioPrev~ | ~mpd-prev~ | +| ~XF86AudioNext~ | ~mpd-next~ | +| ~XF86AudioRaiseVolume~ | ~exec pactl set-sink-volume @DEFAULT_SINK@ +2~ | +| ~XF86AudioLowerVolume~ | ~exec pactl set-sink-volume @DEFAULT_SINK@ -2~ | +| ~XF86AudioMute~ | ~exec pactl set-sink-mute @DEFAULT_SINK@ toggle~ | +| ~XF86MonBrightnessDown~ | ~exec xbacklight -dec 2~ | +| ~XF86MonBrightnessUp~ | ~exec xbacklight -inc 2~ | #+begin_src lisp <>