feat(widgets/bluetooth): Add option to hide widget when adapter is off - #4170
Open
BBaoVanC wants to merge 1 commit into
Open
feat(widgets/bluetooth): Add option to hide widget when adapter is off#4170BBaoVanC wants to merge 1 commit into
BBaoVanC wants to merge 1 commit into
Conversation
This adds a new `hide_when_adapter_off` option to the Bluetooth widget, which hides the Bluetooth widget when the adapter is powered off.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a new
hide_when_adapter_offoption to the Bluetooth widget, which hides the Bluetooth widget when the adapter is powered off.Motivation
I almost always have Bluetooth disabled, so the bluetooth widget is usually just dead space on my bar. The existing
hide_when_no_connected_deviceoption is good, but I also want to see the widget if the bluetooth adapter was left powered on, whether or not any device is connected. This helps me remember to disable it when not used anymore, saving on battery.Type of Change
Testing
I added to my config:
Then test by going to control center and toggling bluetooth on and off: I can observe that the bluetooth widget disappears when off, and reappears when turned back on.
Manual Coverage
Screenshots / Videos
Checklist
CONTRIBUTING.md.just formatwith clang-format v22+ installed, or this PR has no code changes.docs/user/when this PR changes documented behavior or configuration, or this PR does not require documentation changes.assets/translations/en.json, or this PR adds no new user-facing strings.