This commit is contained in:
Sam A. 2022-07-04 17:14:15 +02:00
parent f0ff75787f
commit 9fa15a26a5
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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