scripts/toggle_bluetooth.sh
2020-05-26 08:31:18 +02:00

9 lines
204 B
Bash
Executable File

#!/bin/bash
if rfkill list bluetooth | grep -q 'yes$' ; then
rfkill unblock bluetooth
notify-send "Bloetooth is now enabled"
else
rfkill block bluetooth
notify-send "Bloetooth is now disabled"
fi