improve audio key board shortcuts

This commit is contained in:
Johannes Loher 2023-08-10 22:11:29 +02:00
parent e89e1ba07f
commit 798c0ff503
Signed by: saluu
GPG key ID: 7CB0A9FB553DA045
3 changed files with 3 additions and 10 deletions

View file

@ -27,8 +27,6 @@ set $background $HOME/.local/share/backgrounds/mountain.jpg
# $primary_monitor_scale - Scale factor for thr primary monitor # $primary_monitor_scale - Scale factor for thr primary monitor
# $secondary_monitor_identifier - Identifier of the primary monitor # $secondary_monitor_identifier - Identifier of the primary monitor
# $secondary_monitor_x_offset - X offset for the secondary 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 include config.local
@ -222,8 +220,9 @@ bindsym $mod+z exec thunar
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Audio shortcuts # Audio shortcuts
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
bindsym XF86AudioRaiseVolume 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 $audio_out -5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pactl get-default-sink) -5%
bindsym XF86AudioMicMute exec $HOME/.local/bin/toggle-default-audio --source bindsym XF86AudioMicMute exec $HOME/.local/bin/toggle-default-audio --source
bindsym XF86AudioMute exec $HOME/.local/bin/toggle-default-audio --sink bindsym XF86AudioMute exec $HOME/.local/bin/toggle-default-audio --sink
bindsym $mod+m exec $HOME/.local/bin/toggle-default-audio --source bindsym $mod+m exec $HOME/.local/bin/toggle-default-audio --source

View file

@ -18,6 +18,3 @@ set $tertiary_monitor_y_offset 0
set $tertiary_monitor_background $HOME/.local/share/backgrounds/mountain_vertical.jpg set $tertiary_monitor_background $HOME/.local/share/backgrounds/mountain_vertical.jpg
set $internal_monitor_identifier eDP-1 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

View file

@ -19,9 +19,6 @@ set $tertiary_monitor_background $HOME/.local/share/backgrounds/mountain_vertic
set $internal_monitor_identifier eDP-1 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 # gammastep
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------