From 838e99f3decbcd70e9464929263f98ab49b555c4 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sun, 24 Dec 2023 20:51:42 +0100 Subject: [PATCH] bluetooth scripts: Notify status --- tree/.local/bin/högtalare | 8 +++++++- tree/.local/bin/lurar | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tree/.local/bin/högtalare b/tree/.local/bin/högtalare index 8b7193e..9d1d3a0 100755 --- a/tree/.local/bin/högtalare +++ b/tree/.local/bin/högtalare @@ -2,5 +2,11 @@ set -x +notify-send "Connecting to Högtalare" + bluetoothctl power on -bluetoothctl connect 04:FE:A1:71:4C:70 +if bluetoothctl connect 04:FE:A1:71:4C:70; then + notify-send "Connected" +else + notify-send "Failed to connect to Högtalare" +fi diff --git a/tree/.local/bin/lurar b/tree/.local/bin/lurar index 7e89622..e572a1a 100755 --- a/tree/.local/bin/lurar +++ b/tree/.local/bin/lurar @@ -2,5 +2,11 @@ set -x +notify-send "Connecting to Lurar" + bluetoothctl power on -bluetoothctl connect 94:DB:56:41:C0:38 +if bluetoothctl connect 94:DB:56:41:C0:38; then + notify-send "Connected" +else + notify-send "Failed to connect to Lurar" +fi