From 81d0d523b7c0489672a2fb3679980dd46c68603f Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 1 Feb 2024 18:12:10 +0100 Subject: [PATCH] Remove alsa module due to external sound card --- .config/i3/config.d/desk | 11 +---------- .config/polybar/config.d/desk | 2 +- .init_config.sh | 3 ++- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.config/i3/config.d/desk b/.config/i3/config.d/desk index a9ddc7b..c02732b 100644 --- a/.config/i3/config.d/desk +++ b/.config/i3/config.d/desk @@ -13,10 +13,7 @@ workspace 7 output DVI-I-1 workspace 8 output DVI-I-1 workspace 9 output DVI-I-1 -# ALSA key binding (media keys do not even have keycode...) -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D hw:PCH -M sset Master 2%+ -bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D hw:PCH -M sset Master 2%- -bindsym XF86AudioMute exec --no-startup-id amixer -D hw:PCH -M sset Master toggle +# ALSA key binding bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioPrev exec --no-startup-id playerctl previous bindsym XF86AudioNext exec --no-startup-id playerctl next @@ -39,10 +36,6 @@ exec --no-startup-id jack-matchmaker -p ~/.config/jack-matchmaker/patterns # Start ALSA/Jack bridge for RODE mic exec_always --no-startup-id zita-a2j -d hw:Mini -j Rode -c 1 -# Set front and headphones to 100%, let master alone change with bindsyms -exec --no-startup-id amixer -D hw:PCH -M sset Front 100% -exec --no-startup-id amixer -D hw:PCH -M sset Headphone 100% - ################################## # BINDINGS FOR STARTING PROGRAMS ################################## @@ -62,9 +55,7 @@ bindsym Pause exec --no-startup-id bluetooth-autoconnect ################################## # Scratchpad -for_window [class="Non-Mixer"] mark "mixer", move scratchpad for_window [class="Catia*"] mark "jack", move scratchpad bindsym $mod+Shift+j [con_mark="jack"] scratchpad show, move position center -bindsym $mod+Shift+v [con_mark="mixer"] scratchpad show, move position center for_window [class="Pianoteq STAGE"] floating enable, move position center assign [class="Pianoteq STAGE"] → number 6 diff --git a/.config/polybar/config.d/desk b/.config/polybar/config.d/desk index 10d5f7f..b07cadd 100644 --- a/.config/polybar/config.d/desk +++ b/.config/polybar/config.d/desk @@ -4,7 +4,7 @@ height = 30 top_left = powermenu system-uptime-pretty top_center = player-mpris ;top_center = xwindow -top_right = system-usb-udev alsa date +top_right = system-usb-udev date bottom_left = i3 bottom_center = updates-arch-combined wired-network bottom_right = temperature cpu memory filesystem-custom diff --git a/.init_config.sh b/.init_config.sh index 38f2636..3d94ffd 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -210,6 +210,7 @@ if [ ! -z "${WM_RESTART}" ]; then i3-msg restart # Restart picom due to this bug https://github.com/yshui/picom/issues/166 - killall picom; picom &>/dev/null & + killall picom + picom &>/dev/null & fi