noctalia-shell
noctalia-shell copied to clipboard
[FEATURE] Battery widget for lock screen
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
Feature type
UI / visual improvement
Feature summary
Add a battery widget for the lock screen.
Motivation / use case
I want to see my battery percentage when the screen is locked.
Proposed solution
Add a battery widget.
Alternatives considered
No response
References / related projects
No response
Additional context
No response
This would be very useful, as I like to check my laptop battery percentage without having to unlock it first.
Alternatively, the ability to add a widget that can run a shell cmd to update some display text would work as well. E.g. hyprlock has this feature:
label {
monitor =
text = cmd[update:10000] sh -c 'acpi -b | awk -F"[ ,%]" '\''{printf "%s%% %s\n", $5, ($3=="Charging"?"":"")}'\'''
font_size = 25
font_family = $font
position = -30, -200
halign = right
valign = top
}
I made a plugin : https://noctalia.dev/plugins/community/battery-widget