mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
Auto-start bluetooth service on toggle if not running
This commit is contained in:
parent
f76f7c65da
commit
d4dad7beff
|
@ -11,6 +11,10 @@ toggle() {
|
||||||
rfkill block bluetooth
|
rfkill block bluetooth
|
||||||
else
|
else
|
||||||
rfkill unblock bluetooth
|
rfkill unblock bluetooth
|
||||||
|
if ! systemctl -q is-active bluetooth.service; then
|
||||||
|
# This will use polkit for privillege elevation
|
||||||
|
systemctl start bluetooth
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue