Add bt()
This commit is contained in:
parent
f0ff75787f
commit
9fa15a26a5
|
@ -1,3 +1,15 @@
|
|||
bt() {
|
||||
(( ${+commands[bluetoothctl]} )) || return 1
|
||||
|
||||
if [[ $1 == on ]]; then
|
||||
connmanctl enable bluetooth
|
||||
elif [[ $1 == off ]]; then
|
||||
connmanctl disable bluetooth
|
||||
else
|
||||
bluetoothctl "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
doasedit() {
|
||||
(( ${+commands[doas]} )) || return 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue