From d7853732a305ddde53a2c00dc3185527703a0245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Sun, 10 Dec 2023 15:22:03 +0100 Subject: [PATCH] hlwm: convert pulse keys to wpctl --- dot_config/herbstluftwm/executable_autostart.tmpl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/dot_config/herbstluftwm/executable_autostart.tmpl b/dot_config/herbstluftwm/executable_autostart.tmpl index 11b347f..bd9ff7c 100644 --- a/dot_config/herbstluftwm/executable_autostart.tmpl +++ b/dot_config/herbstluftwm/executable_autostart.tmpl @@ -129,14 +129,9 @@ hc keybind $Mod-i jumpto urgent # hc keybind XF86AudioMute chain , spawn systemd-run --scope --user sh -c 'pactl set-sink-mute $(pactl get-default-sink) toggle' , emit_hook volume # hc keybind XF86AudioLowerVolume chain , spawn systemd-run --scope --user sh -c 'pactl set-sink-volume $(pactl get-default-sink) -10%' , emit_hook volume # hc keybind XF86AudioRaiseVolume chain , spawn systemd-run --scope --user sh -c 'pactl set-sink-volume $(pactl get-default-sink) +10%' , emit_hook volume -# shellcheck disable=SC2016 -hc keybind XF86AudioMute spawn sh -c 'pactl set-sink-mute $(pactl get-default-sink) toggle' -# shellcheck disable=SC2016 -hc keybind XF86AudioLowerVolume spawn sh -c 'pactl set-sink-volume $(pactl get-default-sink) -10%' -# shellcheck disable=SC2016 -hc keybind XF86AudioRaiseVolume spawn sh -c 'pactl set-sink-volume $(pactl get-default-sink) +10%' -# shellcheck disable=SC2016 -hc keybind XF86AudioRaiseVolume spawn sh -c 'pactl set-sink-volume $(pactl get-default-sink) +10%' +hc keybind XF86AudioMute spawn wpctl set-mute @DEFAULT_SINK@ toggle +hc keybind XF86AudioLowerVolume spawn wpctl set-volume @DEFAULT_SINK@ 10%- +hc keybind XF86AudioRaiseVolume spawn wpctl set-volume @DEFAULT_SINK@ 10%+ hc keybind XF86AudioMicMute spawn systemd-run --scope --user rofi -show pulse -modi "pulse:$HOME/.config/herbstluftwm/pulsemenu" hc keybind XF86AudioNext spawn systemd-run --scope --user "$HOME/bin/mprisctl" next hc keybind XF86AudioPrev spawn systemd-run --scope --user "$HOME/bin/mprisctl" prev