From 734558ad9c3e49fba5f0f624993a0bd69a944451 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sun, 3 Dec 2023 18:42:21 +0100 Subject: [PATCH] Bluetooth auto-connect --- .config/bootstrap/config_common | 2 ++ .config/i3/config_common | 2 ++ .init_config.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/.config/bootstrap/config_common b/.config/bootstrap/config_common index 2f98c3e..716d987 100644 --- a/.config/bootstrap/config_common +++ b/.config/bootstrap/config_common @@ -1,5 +1,7 @@ arc-gtk-theme arc-icon-theme +bluez +bluetooth-autoconnect bind chromium cups diff --git a/.config/i3/config_common b/.config/i3/config_common index 91535f8..b68b7a4 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -126,6 +126,8 @@ bindsym Mod4+p exec playerctl play-pause bindsym Mod4+Right exec playerctl next bindsym Mod4+Left exec playerctl previous +# auto-connect to available and trusted bluetooth devices +bindsym $mod+Shift+b exec --no-startup-id bluetooth-autoconnect ################################## # BINDINGS FOR STANDARD OPERATIONS ################################## diff --git a/.init_config.sh b/.init_config.sh index 3178439..1ef02cb 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -107,6 +107,7 @@ if [ ! -z "$INIT" ]; then sudo systemctl enable --now NetworkManager sudo systemctl enable --now systemd-timesyncd sudo systemctl enable --now cups + sudo systemctl enable --now bluetooth # iwd will be used as a backend for NetworkManager sudo systemctl disable wpa_supplicant echo -e "* Ensure hardware clock is up to date..."