i3 status bar: low battery not showing up in redBattery Bar in URxvt?How do you change the color for all the...
Select list elements based on other list
Gift for mentor after his thesis defense?
Picking a theme as a discovery writer
Assuming a normal distribution: what is the sd for a given mean?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Splitting polygons and dividing attribute value proportionally using ArcGIS Pro?
Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?
What does the copyright in a dissertation protect exactly?
call() a function within its own context
why it is 2>&1 and not 2>>&1 to append to a log file
shebang or not shebang
Concatenate all values of the same XML element using XPath/XQuery
Function annotation with two or more return parameters
How does jetBlue determine its boarding order?
Why did Gendry call himself Gendry Rivers?
Is throwing dice a stochastic or a deterministic process?
While drilling into kitchen wall, hit a wire - any advice?
Can a player choose to add detail and flavor to their character's spells and abilities?
How could a humanoid creature completely form within the span of 24 hours?
What is more safe for browsing the web: PC or smartphone?
Range hood vents into crawl space
Searching for a sentence that I only know part of it using Google's operators
Do the Zhentarim fire members for killing fellow members?
Was there a dinosaur-counter in the original Jurassic Park movie?
i3 status bar: low battery not showing up in red
Battery Bar in URxvt?How do you change the color for all the items in the status bar in the i3 WM?How do you implement layout with the autostarting of applications in the i3 window manager?Lenovo T440s battery status unknown, but charging?How to backport microphone patches?Arch linux install not showing in grubDwm status bar and web forms display weird fontsCheck battery status Arch Linux installation ISOKDE/i3: menu bar not toggle-ableHow to get tear-free rendering with nvidia proprietary?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have configured this in my i3status.conf:
battery 0 {
format = "%status %percentage - %remaining"
low_threshold = 30
threshold_type = time
integer_battery_capacity = true
}
And the battery indicator works just fine, except for the fact that it does not turn red when under the low_threshold, which it should according to the documentation.
What can cause it not be become red? All other text is white.
arch-linux i3
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have configured this in my i3status.conf:
battery 0 {
format = "%status %percentage - %remaining"
low_threshold = 30
threshold_type = time
integer_battery_capacity = true
}
And the battery indicator works just fine, except for the fact that it does not turn red when under the low_threshold, which it should according to the documentation.
What can cause it not be become red? All other text is white.
arch-linux i3
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have configured this in my i3status.conf:
battery 0 {
format = "%status %percentage - %remaining"
low_threshold = 30
threshold_type = time
integer_battery_capacity = true
}
And the battery indicator works just fine, except for the fact that it does not turn red when under the low_threshold, which it should according to the documentation.
What can cause it not be become red? All other text is white.
arch-linux i3
I have configured this in my i3status.conf:
battery 0 {
format = "%status %percentage - %remaining"
low_threshold = 30
threshold_type = time
integer_battery_capacity = true
}
And the battery indicator works just fine, except for the fact that it does not turn red when under the low_threshold, which it should according to the documentation.
What can cause it not be become red? All other text is white.
arch-linux i3
arch-linux i3
asked May 19 '14 at 12:34
useruser
66351528
66351528
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I just stumbled upon your question and noticed there were no replies so I thought I'd give it a whirl.
First off, I do not edit /etc/i3status.conf
. Instead, I use conky and edit ~/.conkyrc
. By changing the /etc/i3status.conf
, you are changing the system file, which will then make that setting system wide. Just add the following to your ~/.conkyrc
and it should work. You may have to change the path /sys/class/power_suply/AC0/online
to cater to your system though.
${if_existing /sys/class/power_supply/AC0/online 0}
${if_match ${battery_percent} <= 20}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${else}
${if_match ${battery_percent} <= 20}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${endif}
Hope this solves your question, although I hope you have already solved it.
add a comment |
When working with the very basic i3status bar, your options are quite limited. Yet in this case I think your error is in saying threshold_type = time
. This makes i3status display the text red if less than 30 minutes of power supply are remaining (see the i3status-manpage).
If instead you set threshold_type
to percentage
with a low_threshold = 30
your battery text will appear read as it reaches 29% and below.
I hope this solves your or anyone's problem who looks up this page. I started with i3status as well, but can now recommend Conky as a good status bar.
add a comment |
Sorry for writing many years later...
i3status seems to show in red only if the laptop isn't plugged. If it's charging, even if you are below the threshold, it shows white.
Or maybe the problem could be this:
Try putting color_bad = "#FF0000"
inside battery 0 {...}
.
If I had color_bad only inside general {...}
didn't work... if I remember well.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f130935%2fi3-status-bar-low-battery-not-showing-up-in-red%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I just stumbled upon your question and noticed there were no replies so I thought I'd give it a whirl.
First off, I do not edit /etc/i3status.conf
. Instead, I use conky and edit ~/.conkyrc
. By changing the /etc/i3status.conf
, you are changing the system file, which will then make that setting system wide. Just add the following to your ~/.conkyrc
and it should work. You may have to change the path /sys/class/power_suply/AC0/online
to cater to your system though.
${if_existing /sys/class/power_supply/AC0/online 0}
${if_match ${battery_percent} <= 20}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${else}
${if_match ${battery_percent} <= 20}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${endif}
Hope this solves your question, although I hope you have already solved it.
add a comment |
I just stumbled upon your question and noticed there were no replies so I thought I'd give it a whirl.
First off, I do not edit /etc/i3status.conf
. Instead, I use conky and edit ~/.conkyrc
. By changing the /etc/i3status.conf
, you are changing the system file, which will then make that setting system wide. Just add the following to your ~/.conkyrc
and it should work. You may have to change the path /sys/class/power_suply/AC0/online
to cater to your system though.
${if_existing /sys/class/power_supply/AC0/online 0}
${if_match ${battery_percent} <= 20}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${else}
${if_match ${battery_percent} <= 20}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${endif}
Hope this solves your question, although I hope you have already solved it.
add a comment |
I just stumbled upon your question and noticed there were no replies so I thought I'd give it a whirl.
First off, I do not edit /etc/i3status.conf
. Instead, I use conky and edit ~/.conkyrc
. By changing the /etc/i3status.conf
, you are changing the system file, which will then make that setting system wide. Just add the following to your ~/.conkyrc
and it should work. You may have to change the path /sys/class/power_suply/AC0/online
to cater to your system though.
${if_existing /sys/class/power_supply/AC0/online 0}
${if_match ${battery_percent} <= 20}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${else}
${if_match ${battery_percent} <= 20}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${endif}
Hope this solves your question, although I hope you have already solved it.
I just stumbled upon your question and noticed there were no replies so I thought I'd give it a whirl.
First off, I do not edit /etc/i3status.conf
. Instead, I use conky and edit ~/.conkyrc
. By changing the /etc/i3status.conf
, you are changing the system file, which will then make that setting system wide. Just add the following to your ~/.conkyrc
and it should work. You may have to change the path /sys/class/power_suply/AC0/online
to cater to your system though.
${if_existing /sys/class/power_supply/AC0/online 0}
${if_match ${battery_percent} <= 20}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "D ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${else}
${if_match ${battery_percent} <= 20}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#FB4646"},
${else}
{"full_text": "🔌 ${battery_percent BAT0}%" , "color":"#909090"},
${endif}
${endif}
Hope this solves your question, although I hope you have already solved it.
edited Oct 20 '15 at 11:14
Thomas Weinbrenner
2,68721131
2,68721131
answered Aug 14 '15 at 21:58
user3242260user3242260
1
1
add a comment |
add a comment |
When working with the very basic i3status bar, your options are quite limited. Yet in this case I think your error is in saying threshold_type = time
. This makes i3status display the text red if less than 30 minutes of power supply are remaining (see the i3status-manpage).
If instead you set threshold_type
to percentage
with a low_threshold = 30
your battery text will appear read as it reaches 29% and below.
I hope this solves your or anyone's problem who looks up this page. I started with i3status as well, but can now recommend Conky as a good status bar.
add a comment |
When working with the very basic i3status bar, your options are quite limited. Yet in this case I think your error is in saying threshold_type = time
. This makes i3status display the text red if less than 30 minutes of power supply are remaining (see the i3status-manpage).
If instead you set threshold_type
to percentage
with a low_threshold = 30
your battery text will appear read as it reaches 29% and below.
I hope this solves your or anyone's problem who looks up this page. I started with i3status as well, but can now recommend Conky as a good status bar.
add a comment |
When working with the very basic i3status bar, your options are quite limited. Yet in this case I think your error is in saying threshold_type = time
. This makes i3status display the text red if less than 30 minutes of power supply are remaining (see the i3status-manpage).
If instead you set threshold_type
to percentage
with a low_threshold = 30
your battery text will appear read as it reaches 29% and below.
I hope this solves your or anyone's problem who looks up this page. I started with i3status as well, but can now recommend Conky as a good status bar.
When working with the very basic i3status bar, your options are quite limited. Yet in this case I think your error is in saying threshold_type = time
. This makes i3status display the text red if less than 30 minutes of power supply are remaining (see the i3status-manpage).
If instead you set threshold_type
to percentage
with a low_threshold = 30
your battery text will appear read as it reaches 29% and below.
I hope this solves your or anyone's problem who looks up this page. I started with i3status as well, but can now recommend Conky as a good status bar.
answered Oct 11 '16 at 21:00
artemis_clydeartemis_clyde
11
11
add a comment |
add a comment |
Sorry for writing many years later...
i3status seems to show in red only if the laptop isn't plugged. If it's charging, even if you are below the threshold, it shows white.
Or maybe the problem could be this:
Try putting color_bad = "#FF0000"
inside battery 0 {...}
.
If I had color_bad only inside general {...}
didn't work... if I remember well.
add a comment |
Sorry for writing many years later...
i3status seems to show in red only if the laptop isn't plugged. If it's charging, even if you are below the threshold, it shows white.
Or maybe the problem could be this:
Try putting color_bad = "#FF0000"
inside battery 0 {...}
.
If I had color_bad only inside general {...}
didn't work... if I remember well.
add a comment |
Sorry for writing many years later...
i3status seems to show in red only if the laptop isn't plugged. If it's charging, even if you are below the threshold, it shows white.
Or maybe the problem could be this:
Try putting color_bad = "#FF0000"
inside battery 0 {...}
.
If I had color_bad only inside general {...}
didn't work... if I remember well.
Sorry for writing many years later...
i3status seems to show in red only if the laptop isn't plugged. If it's charging, even if you are below the threshold, it shows white.
Or maybe the problem could be this:
Try putting color_bad = "#FF0000"
inside battery 0 {...}
.
If I had color_bad only inside general {...}
didn't work... if I remember well.
edited Apr 9 '18 at 21:17
answered Apr 9 '18 at 21:08
user285270user285270
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f130935%2fi3-status-bar-low-battery-not-showing-up-in-red%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown