From 0d7970742f1d09373d9a913fd3e46c58137c1fa3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 5 Apr 2025 19:25:48 +0100 Subject: Some work on Scripts notable changes: - rename `bt-connect` to `bt_connect` - rename `music` to `media` and make it generic instead of checking Spotify - make separate script to set background to a preset black image - make all shebangs "#!/usr/bin/env sh" --- Scripts/.local/scripts/status/bluetooth-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Scripts/.local/scripts/status/bluetooth-status') diff --git a/Scripts/.local/scripts/status/bluetooth-status b/Scripts/.local/scripts/status/bluetooth-status index 6de5422..35c550a 100755 --- a/Scripts/.local/scripts/status/bluetooth-status +++ b/Scripts/.local/scripts/status/bluetooth-status @@ -1,7 +1,7 @@ #!/usr/bin/env sh -name=$(bluetoothctl info | grep "Name" | sed 's/.*Name: //') -battery=$(bluetoothctl info | grep "Battery" | sed 's/.*(//;s/)//') +name=$(bluetoothctl info | grep "Alias" | sed 's/.*Alias: //') +battery=$(bluetoothctl info | grep "Battery Percentage" | sed 's/.*(//;s/)//') if [ ! "$name" ] then echo "" -- cgit v1.2.3-13-gbd6f