add *.sh
This commit is contained in:
8
toggle_bluetooth.sh
Executable file
8
toggle_bluetooth.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/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
|
Reference in New Issue
Block a user