aboutsummaryrefslogtreecommitdiff
path: root/public/.local/bin/network_control.sh
diff options
context:
space:
mode:
authorMitsuo Tokumori <mitsuo@tokumori.xyz>2025-12-30 01:17:10 +0900
committerMitsuo Tokumori <mitsuo@tokumori.xyz>2025-12-30 01:17:10 +0900
commit897ffe7b3ba43fee0c4418148a185d1cbb7d6425 (patch)
tree9d5fca789746ebb9b8a99902b7aa66b0f6bde2c5 /public/.local/bin/network_control.sh
parentd0a3fa2ddd2843a55cce25d29fe61daf27ef1d38 (diff)
QoL small changes
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