From bb1ad9c04c92e62ed5b8e54b657d5f549daf712a Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sat, 4 May 2024 13:24:29 +0200 Subject: [PATCH] Pipewire config/bindings --- .config/i3/config.d/laptop | 5 ----- .config/i3/config_common | 6 ++++++ .config/polybar/config.d/misc.desk | 2 +- .init_config.sh | 2 ++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.config/i3/config.d/laptop b/.config/i3/config.d/laptop index 945848d..0f5f8a1 100644 --- a/.config/i3/config.d/laptop +++ b/.config/i3/config.d/laptop @@ -2,11 +2,6 @@ # STARTING CONFIGURATION ################################## -# ALSA keybinding (won't work with some keyboards... scroll in polybar in that case) -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D hw:PCH -M sset Master 5%+ -bindsym XF86AudioLowerVolume exec --no-startup-id aimxer -D hw:PCH -M sset Master 5%- -bindsym XF86AudioMute exec --no-startup-id amixer -D hw:PCH -M sset 'Master' toggle - # Luminosity on laptop bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%- bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5% diff --git a/.config/i3/config_common b/.config/i3/config_common index 2e2c268..274c460 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -237,6 +237,12 @@ mode "$resize_mode" { bindsym $mod+r mode "$resize_mode" + +# ALSA keybinding (won't work with some keyboards... scroll in polybar in that case) +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse -M sset Master 5%+ +bindsym XF86AudioLowerVolume exec --no-startup-id aimxer -D pulse -M sset Master 5%- +bindsym XF86AudioMute exec --no-startup-id amixer -D pulse -M sset 'Master' toggle + ################################## # BINDINGS FOR NOTIFICATIONS ################################## diff --git a/.config/polybar/config.d/misc.desk b/.config/polybar/config.d/misc.desk index aac3942..9663d7c 100644 --- a/.config/polybar/config.d/misc.desk +++ b/.config/polybar/config.d/misc.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 date +top_right = pulseaudio system-usb-udev date bottom_left = i3 bottom_right = temperature cpu memory filesystem-custom diff --git a/.init_config.sh b/.init_config.sh index d07825c..85fa5f5 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -97,6 +97,8 @@ function init_system() { sudo systemctl enable --now bluetooth sudo systemctl enable --now bluetooth-autoconnect sudo systemctl enable --now updatedb.timer + systemctl --user enable --now pipewire-pulse + systemctl --user enable --now pipewire-pulse.socket ~/.config/bootstrap/init_netctl.sh ${ENV} echo -e "* Ensure hardware clock is up to date..." sudo hwclock --systohc