diff options
Diffstat (limited to 'public/.local/bin/network_control.sh')
| -rwxr-xr-x | public/.local/bin/network_control.sh | 7 |
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 |
