scripts/toggle_bluetooth.sh

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