new scripts

This commit is contained in:
Page Asgardius 2024-01-03 14:22:09 -07:00
parent bd1595b074
commit d9b2ee9fe5
2 changed files with 20 additions and 0 deletions

10
bttoggle.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
if bluetoothctl show | grep 'Powered: yes' ; then
bluetoothctl power off
echo 'bluetooth off'
else
bluetoothctl power on
# notify-send -i network-wireless-none "Wireless" "Wireless enabled"
echo 'bluetooth on'
fi

10
wifitoggle.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
if [ $(nmcli radio wifi | awk '/led/ {print}') = 'enabled' ] ; then
nmcli radio wifi off
echo 'wifi off'
else
nmcli radio wifi on
# notify-send -i network-wireless-none "Wireless" "Wireless enabled"
echo 'wifi on'
fi