scripts/toggle_bluetooth.sh

9 lines
204 B
Bash
Raw Normal View History

2020-05-26 08:31:18 +02:00
#!/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