diff --git a/zsh/.config/zsh/functions.zsh b/zsh/.config/zsh/functions.zsh index 2d02741..b34010a 100644 --- a/zsh/.config/zsh/functions.zsh +++ b/zsh/.config/zsh/functions.zsh @@ -3,12 +3,12 @@ bt() { if [[ $1 == on ]]; then (( ${+commands[connmanctl]} )) && - connmanctl enable bluetooth || - bluetoothctl power on + connmanctl enable bluetooth && sleep 0.5 + bluetoothctl power on elif [[ $1 == off ]]; then + bluetoothctl power off (( ${+commands[connmanctl]} )) && - connmanctl disable bluetooth || - bluetoothctl power off + connmanctl disable bluetooth else bluetoothctl "$@" fi