From a2a15d07af66f6c1dc915f379261d165c31cec46 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Wed, 12 Feb 2020 13:32:02 -0500 Subject: [PATCH] Adding bluetooth toggle scripts --- .local/bin/polybar_scripts/bluetooth.sh | 12 ------------ .local/bin/polybar_scripts/toggle_bluetooth.sh | 7 ------- 2 files changed, 19 deletions(-) delete mode 100755 .local/bin/polybar_scripts/bluetooth.sh delete mode 100755 .local/bin/polybar_scripts/toggle_bluetooth.sh diff --git a/.local/bin/polybar_scripts/bluetooth.sh b/.local/bin/polybar_scripts/bluetooth.sh deleted file mode 100755 index 9c0bd76f..00000000 --- a/.local/bin/polybar_scripts/bluetooth.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ] -then - echo "%{F#66ffffff}" -else - if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ] - then - echo "" - fi - echo "%{F#2193ff}" -fi - diff --git a/.local/bin/polybar_scripts/toggle_bluetooth.sh b/.local/bin/polybar_scripts/toggle_bluetooth.sh deleted file mode 100755 index dffb663f..00000000 --- a/.local/bin/polybar_scripts/toggle_bluetooth.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ] -then - bluetoothctl power on -else - bluetoothctl power off -fi