Comments (7)
Hi
There's no config option for it today. I usually use ramp-capacity-N
to display the icon in red when it gets low for example.
from polybar.
Oh good idea, i didn't think about that, thx !
from polybar.
@jaagr do you have an example of this ?
from polybar.
@jediofthecode something like this:
[module/battery]
type = internal/battery
full_at = 98
format-discharging = <ramp-capacity> <label-discharging>
ramp-capacity-0 =
ramp-capacity-0-foreground = #de0037
ramp-capacity-1 =
ramp-capacity-2 =
That would show a red icon at 33%... add more entries to lower the %
from polybar.
Closing this issue since the given solution should be enough for customizing the output when the battery level is low.
from polybar.
Assuming ramps are dynamic, if I created 6 instances (ramp-capacity-0-5) it would split them at every 16.6~%, correct?
Relevancy of that to this issue is adding more ramps to lower the "low battery" threshold with the forground color on the lowest increment (0).
from polybar.
Yeah, that's correct.
from polybar.
Related Issues (20)
- [Bug]: Dereferencing NULL when using an undefined battery animation HOT 2
- [Bug]: internal/tray is not rendering properly changes in tray icons HOT 3
- [Bug]: The last version makes the label show up regardless if the exec had any output. HOT 1
- [Bug]: Tray Icons too small when using the new tray module. HOT 1
- [Bug]: Battery’s `label-low` not shown even if battery level is under `low-at` HOT 1
- [Bug] internal/battery: percentage is not detected, even though the file is present
- 3.7.1 bars under 100% width will have repeating empty bars next to the working bars that have output HOT 2
- [Bug]: Pulseaudio module is missing even tho it is correctly set in the config and it worked before HOT 1
- [Bug]: HOT 3
- [Bug]: Pulseaudio volume increases on scroll when muted, but doesn't unmute HOT 5
- Token min and max width calculations wrong with non-ASCII characters
- [Bug]: Polybar shows both icons and workspace name with %icon% and background color for active workspace doesn't work HOT 1
- [Bug]: Wine tray icons are invisible on new tray module
- [Bug]: `pin-workspaces = true` doesn't work on awesomewm HOT 3
- [Bug]: Polybar on linux mint does not have default config in /etc HOT 2
- [Bug]: Polybar doesn't sync xworkspaces correctly HOT 3
- [Bug]: garbled cursor over polybar
- [Bug]: Segmentation fault when restarting/reloading polybar HOT 3
- [Bug]: custom/script receiving multiple lines rapidly only displays first line HOT 2
- [Feature]: XWorkspaces does not get urgent flag from XMonad HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polybar.