[module] New module bluetooth2

I was unhappy with how the module bluetooth functioned so I decided to write a new one

This is the result. The module tries to find adapters ON with bluetoothctl list initally
if none are there, then it assumes it is off and check if any adapters are present with rfkill list

State were added

as well as the number of devices

I also made it so that the toggle works

I was initally going to push this as bluetooth but decided it was so different so to push it as a different module.

python-dbus is a dependency
This commit is contained in:
Martin 2020-03-18 17:32:43 +01:00
parent d90af8c257
commit 8fe444aeca
2 changed files with 105 additions and 0 deletions

View file

@ -90,6 +90,7 @@
"OFF": { "prefix": "" },
"?": { "prefix": "" }
},
"bluetooth2": { "prefix": "" },
"battery-upower": {
"charged": { "prefix": "", "suffix": "" },
"AC": { "suffix": "" },