py3status
py3status copied to clipboard
Add option to format bluetooth module output if there's no adapter detected
I currently see no way of configuring the icon/text when using bluetooth module. If there is something wrong with the adapter, the text just says: "bluetooth". It would be nice if a user can define that for instance a greyed out bluetooth icon is shown instead.
Try https://github.com/ultrabug/py3status/tree/newmodule-bluetooth.
thank you, though this fails on my test arch linux system inside virtualbox. seems like with missing bluetooth adapter bluetooth.service
is unable to start and the module cannot cope with such a situation
Is there an error message from the module? Just in case you didn't see... What you want is not in default format
. (See third example). Otherwise, I need more info.
it looks as it is failing earlier than the formatting starts.
I can reproduce this by uninstalling bluez
stuff. Do you have them installed on virtualbox?
That error message is pretty nasty tho... The problem might be unrelated to the adapter too because I didn't have issues running/testing bluetooth
module without the adapter.
I do have bluez
package installed inside VirtualBox. I should have an option to test this on a real computer lacking bluetooth adapter later this week.
No problem. I recently added a new exciting commit. My old bluetooth mouse is really flakey. :(
Thank you, the new commit works nicely. How long before this is pulled into main branch?
I'd like to add a few additional information. On Arch the bluetooth service file contains the following check:
ConditionPathIsDirectory=/sys/class/bluetooth
Without this the service is not started and py3status
reports an issue. The directory is not created by default inside my VirtualBox machine but when I start the service manually no error is reported by systemd, the directory gets created and py3status
stops failing.
If there is something wrong with the adapter, the text just says: "bluetooth". It would be nice if a user can define that for instance a greyed out bluetooth icon is shown instead.
I now realize this is likely an error message you saw. You can click on that if you want. Click-1 to show the error. Click-2 to refresh/retry. Click-3 to hide/dismiss the module.
EDIT: Based on the screenshot, you know this now/already.
Without this the service is not started and py3status reports an issue.
It came from dbus and py3status displays any errors we had with the module . Same error if we try to connect to org.bluez
on d-feet
.
@ultrabug Bluetooth issue technically unrelated to py3status. WDYWTD?
- Close this?
- Merge
newmodule-bluetooth
? i) 20+ placeholders. ii) Includes adapters. iii) No more hardcodedcolor
. iv) Code looks more clean.