From 872e508fc73930967a5c0124018cd6592db091c7 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 28 Mar 2022 01:59:32 +0200 Subject: [PATCH] [StumpWM, Emacs] Change keybind for changing volume --- org/config/emacs.org | 10 +++++----- org/config/stumpwm.org | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index d27278d..d13ebb3 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -3678,11 +3678,11 @@ The complete configuration for the ~exwm~ package can be found below. desktop-environment-brightness-small-increment "-inc 2" desktop-environment-brightness-small-decrement "-dec 2" - desktop-environment-volume-normal-decrement "5%-" - desktop-environment-volume-normal-increment "5%+" - desktop-environment-volume-small-decrement "2%-" - desktop-environment-volume-small-increment "2%+" - desktop-environment-volume-set-command "amixer -q Master %s unmute" + desktop-environment-volume-normal-decrement "-d 5" + desktop-environment-volume-normal-increment "-i 5" + desktop-environment-volume-small-decrement "-d 2" + desktop-environment-volume-small-increment "-i 2" + desktop-environment-volume-set-command "pamixer -u %s" desktop-environment-screenshot-directory "~/Pictures/Screenshots" desktop-environment-screenlock-command "plock" diff --git a/org/config/stumpwm.org b/org/config/stumpwm.org index d5d656d..12b66eb 100644 --- a/org/config/stumpwm.org +++ b/org/config/stumpwm.org @@ -1765,18 +1765,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 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~ | +| Keychord | Function | +|-----------------------+------------------------| +| ~XF86AudioPlay~ | ~mpd-toggle-pause~ | +| ~XF86AudioPause~ | ~exec mpc pause~ | +| ~XF86AudioStop~ | ~mpd-stop~ | +| ~XF86AudioPrev~ | ~mpd-prev~ | +| ~XF86AudioNext~ | ~mpd-next~ | +| ~XF86AudioRaiseVolume~ | ~exec pamixer -i 2~ | +| ~XF86AudioLowerVolume~ | ~exec pamixer -d 2~ | +| ~XF86AudioMute~ | ~exec pamixer -t~ | +| ~XF86MonBrightnessDown~ | ~exec xbacklight -dec 2~ | +| ~XF86MonBrightnessUp~ | ~exec xbacklight -inc 2~ | #+begin_src lisp <>