From dc2ac02412b8254b47f4f396ca3990462fcd1a96 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 26 Oct 2020 17:21:39 +0200 Subject: [PATCH] begin depulseaudioing https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#No_sound_below_a_volume_cutoff_or_Clipping_on_a_particular_output_device is too much for me. I expect to suffer this decision too though. * i3: bind audio buttons to amixer (TODO: there are still pulse-specific shortcuts and no shortcut for any kind of a mixer. $TERMINAL alsamixer?) * i3status: comment pulse to make it see alsa * apt: pin pulseaudio to negative priority --- conf/i3/config | 12 +++++++++--- conf/i3status/config | 2 +- etc/apt/preferences.d/00-pulseaudio | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 etc/apt/preferences.d/00-pulseaudio diff --git a/conf/i3/config b/conf/i3/config index 0ba6fc42..44979c71 100644 --- a/conf/i3/config +++ b/conf/i3/config @@ -356,9 +356,15 @@ bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send - #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # mute sound # Apparently pasystray alerts me of the status changes, so I don't have to # echo them by myself. -bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 # && notify-send -t 500 "$(pulsemixer --get-volume)" -bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 # && notify-send -t 500 "$(pulsemixer --get-volume)" -bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute # && notify-send -t 500 "🔇 pressed" +# pulseaudio bindings +#bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 # && notify-send -t 500 "$(pulsemixer --get-volume)" +#bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 # && notify-send -t 500 "$(pulsemixer --get-volume)" +#bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute # && notify-send -t 500 "🔇 pressed" + +# amixer / alsamixer / alsa bindings +bindsym XF86AudioLowerVolume exec --no-startup-id notify-send -t 500 "$(amixer set Master 2dB-)" +bindsym XF86AudioRaiseVolume exec --no-startup-id notify-send -t 500 "$(amixer set Master 2dB+)" +bindsym XF86AudioMute exec --no-startup-id notify-send -t 500 "$(amixer set Master toggle)" bindsym $mod+p exec arandr bindsym $mod+Shift+p exec arandr diff --git a/conf/i3status/config b/conf/i3status/config index a73ed0e1..343286dc 100644 --- a/conf/i3status/config +++ b/conf/i3status/config @@ -113,7 +113,7 @@ time { volume master { format = "♪: %volume" format_muted = "♪: muted (%volume)" - device = "pulse" + #device = "pulse" } ipv6 { diff --git a/etc/apt/preferences.d/00-pulseaudio b/etc/apt/preferences.d/00-pulseaudio new file mode 100644 index 00000000..2a2d5a1b --- /dev/null +++ b/etc/apt/preferences.d/00-pulseaudio @@ -0,0 +1,3 @@ +Package: pulseaudio +Pin: release o=Debian +Pin-Priority: -1