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
1 changed files with 12 additions and 0 deletions

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