From 798c0ff503f02cb8f1eaa3f70ae54bf72f656368 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 10 Aug 2023 22:11:29 +0200 Subject: [PATCH] improve audio key board shortcuts --- .config/sway/config | 7 +++---- .config/sway/config.local##hostname.avior | 3 --- .config/sway/config.local##hostname.saiph | 3 --- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 3d832b8..cabd4a1 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -27,8 +27,6 @@ set $background $HOME/.local/share/backgrounds/mountain.jpg # $primary_monitor_scale - Scale factor for thr primary monitor # $secondary_monitor_identifier - Identifier of the primary monitor # $secondary_monitor_x_offset - X offset for the secondary monitor -# $audio_out - Name of the audio drain to be controlled by shortcuts -# $audio_in - Name of the audio source to be controlled by shortcuts include config.local @@ -222,8 +220,9 @@ bindsym $mod+z exec thunar # ------------------------------------------------------------------------------ # Audio shortcuts # ------------------------------------------------------------------------------ -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $audio_out +5% -bindsym XF86AudioLowerVolume exec pactl set-sink-volume $audio_out -5% +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pactl get-default-sink) +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pactl get-default-sink) -5% + bindsym XF86AudioMicMute exec $HOME/.local/bin/toggle-default-audio --source bindsym XF86AudioMute exec $HOME/.local/bin/toggle-default-audio --sink bindsym $mod+m exec $HOME/.local/bin/toggle-default-audio --source diff --git a/.config/sway/config.local##hostname.avior b/.config/sway/config.local##hostname.avior index c1b3307..64c0089 100644 --- a/.config/sway/config.local##hostname.avior +++ b/.config/sway/config.local##hostname.avior @@ -18,6 +18,3 @@ set $tertiary_monitor_y_offset 0 set $tertiary_monitor_background $HOME/.local/share/backgrounds/mountain_vertical.jpg set $internal_monitor_identifier eDP-1 - -set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo -set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo diff --git a/.config/sway/config.local##hostname.saiph b/.config/sway/config.local##hostname.saiph index e542f26..6faf093 100644 --- a/.config/sway/config.local##hostname.saiph +++ b/.config/sway/config.local##hostname.saiph @@ -19,9 +19,6 @@ set $tertiary_monitor_background $HOME/.local/share/backgrounds/mountain_vertic set $internal_monitor_identifier eDP-1 -set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo -set $audio_in alsa_input.pci-0000_00_1b.0.analog-stereo - # ------------------------------------------------------------------------------ # gammastep # ------------------------------------------------------------------------------