aboutsummaryrefslogtreecommitdiff
path: root/public/.local/bin/network_control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'public/.local/bin/network_control.sh')
-rwxr-xr-xpublic/.local/bin/network_control.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/public/.local/bin/network_control.sh b/public/.local/bin/network_control.sh
index 4dc4b38..8fe580f 100755
--- a/public/.local/bin/network_control.sh
+++ b/public/.local/bin/network_control.sh
@@ -35,9 +35,12 @@ toggle_network_quarantine() {
fi
}
-# WIP
toggle_bluetooth() {
- :
+ if bluetoothctl show | grep -q "Powered: yes"; then
+ bluetoothctl power off
+ else
+ bluetoothctl power on
+ fi
}
case $1 in