Skip to content

feat: add battery_enabled script #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

perrin4869
Copy link

Currently, there is no reliable way to determine whether or not a battery is available in the system, making this plugin less portable.
There was an older issue regarding this: #63
The aim of this PR is to make it easier to determine whether a battery is available on the system by setting up a variable, @battery_enabled that will be true when a battery is detected, and false otherwise.
It needs to be included in a separate file, because if added via interpolation, it won't be possible to use along side other variables, such as {E:@catppuccin_status_battery} that have to be rendered via set -F.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant