From f6fb8f59c05bea796d9ae8880d622dffbd3797da Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 6 May 2022 23:12:06 +0200 Subject: [PATCH] Update dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh Update run_once_prepare_arch.sh.tmpl --- .../polybar/scripts/executable_polybar_bluetooth_speaker.sh | 3 ++- run_once_prepare_arch.sh.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh b/dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh index 7cc5f4b..3cc2943 100644 --- a/dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh +++ b/dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh @@ -10,7 +10,8 @@ source colors.sh bluetooth_speaker() { - SPEAKER_CONNECTED=$(bt-device -i 78:44:05:F6:E9:15 | grep Connected | xargs | cut -d ' ' -f 2) + BT_DEVICE="1C:E6:1D:EF:0A:76" + SPEAKER_CONNECTED=$(bt-device -i $BT_DEVICE | grep Connected | xargs | cut -d ' ' -f 2) if [ "$SPEAKER_CONNECTED" -eq 1 ]; then speaker_indicator="${faded_green}юда${RESET}" else diff --git a/run_once_prepare_arch.sh.tmpl b/run_once_prepare_arch.sh.tmpl index aefd179..cbe9c30 100644 --- a/run_once_prepare_arch.sh.tmpl +++ b/run_once_prepare_arch.sh.tmpl @@ -1,4 +1,4 @@ {{ if eq .chezmoi.osRelease.idLike "arch" }} #!/bin/bash -sudo pacman -S picom i3-gaps polybar dunst dmenu i3lock yay --noconfirm +sudo pacman -S picom i3-gaps polybar dunst dmenu i3lock bluez-tools tmux yay --noconfirm {{ end }}