new scripts
This commit is contained in:
parent
bd1595b074
commit
d9b2ee9fe5
2 changed files with 20 additions and 0 deletions
10
bttoggle.sh
Normal file
10
bttoggle.sh
Normal 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
10
wifitoggle.sh
Normal 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
|
Loading…
Reference in a new issue