Change battery_bar color automatically in conky

Hi,
it's possible to change the color of battery_bar (in conky) when the battery level drops below a certain threshold?
Thanks.

I realize this post is ancient but I found it while searching for the same, so for anyone who lands here and has the desire to change the color automatically based on battery level here's what I'm using. This goes green to 45% orange to 25% and red under that, when it hits 10% and lower it will start to flash.
${if_match ${battery_percent BAT0} >= 45}${color 636F57}${battery_bar 6 BAT0}${else} ${if_match ${battery_percent BAT0} >= 25}${color FFA500}${battery_bar 6 BAT0}${else}${color B22222}${if_match ${battery_percent} =< 10} ${blink ${battery_bar 6 BAT0}} ${else} ${battery_bar 6 BAT0}${endif}
Last edited by gehidore (2012-11-10 05:54:22)

Similar Messages

  • Icloud calendar colors automatically changing

    On iOS 6 and 7 my icloud shared calendars are automatically changing as if they are on a rainbow timer. When I set it back to a different color, a few minutes later it just goes back and changes again. I really thought iOS7 would solve this. Any suggestions?

    Mine is doing the same thing. I though there would be one place where I could change it and it would push out to the others, but that doesn't seem to be the case. My primary calendar was Orange for the longest time, but now it keeps turning Purple.
    Here's where I've tried to change it:
    icloud.com via Safari 6 on OS X Lion
    iCal on OS X Lion
    Calendar App on iOS 7
    Sunrise Calendar on iOS 7
    On each one of these, I am able to change the color back to Orange, but within a minute or less, it is back to Purple. The only exception is iCal on Lion. It retains my color change even through calendar refreshes, but when the app is quit and relaunched, the changes have not persisted and the Orange calendar is now Purple again.

  • Final Cut Pro X- automatically changes video color

    When I bring new media into a project, in the viewing screen it changes the color. I have turned off all color settings and the problem still consists. In the project editing strips the color is fine but when viewing it is tinted purple. Any help?

    You might not have a compatible video card. It needs to be "OpenCL" compatible. What mac are you using, and what video card? This info is available using the "About this Mac" menu item; click "More Info" to get to the video info.

  • Data model automatically changes the color and the report corrupts.

    we want to run six reports in a single report and users can run the report they select . So,We have 23 simple queries in datamodel and 20 pages of layout,
    it was working fine.but now if we make some changes the color in the datatmodel changes,when we try to save this the file corrupts.when we try to open the
    file it says some information missing in the report.we have reports builder10g.Is there any size limit for rdf file? because our rdf file size 944kb.
    Thank you.

    No.

  • Unable to change font color for Plain Text Emails

    I have a Win7 Enterprise x86 machine running Outlook 2010.  I am unable to read plain text emails.  When I go into Options->Mail->Stationary and Fonts, the preview box under "Composing and reading plain text messages" is all white. 
    I've tried changing it to automatic, black, random colors, different fonts and styles, click 'Ok' and nothing happens.  Preview pane and incoming plain text emails are white.  I followed all the steps in this TechNet article: http://social.technet.microsoft.com/Forums/office/en-US/0e535f1f-0a2f-4208-9b05-42c4e943b484/outlook-2010-cannot-view-plain-text-emails?forum=officeitproprevious
    Applied the Fix It, repaired Office 2010, renamed the normalemail.dotm file.  Still nothing.
    Anyone run into this issue or have a fix?

    This could be a view issue. Please try to open Outlook using the /cleanviews
    switch to clean your views, and try again. Here is the line switches for Outlook 2010http://office.microsoft.com/en-001/outlook-help/command-line-switches-for-outlook-2010-HP010354956.aspx
    If /cleanviews doesn't work for you, you might try to recreate your Outlook profile. Please refer to this article:
    http://office.microsoft.com/en-us/outlook-help/create-an-outlook-profile-HA102749460.aspx
      

  • How can I change the color of subscribed calendar?

    Hello!
    I have subscribed two calendars from the internet at my ipad. They automatically got the colors green and red. Now I wanted to change these colors. So I did it and changed them in the calendar-app of the iPad to blue and yellow. At first it worked. But after a few minutes, the colors automatically changed back to green and red. And that happens all the time. Whenever I change the colors of my subscribed calendars, they automatically change back a few moments later.
    Why does it happen? And how can I make my iPad keep the new color settings?
    I am using iOS 5.0.1

    I figured out a solution for changing the other calendars but not the birthday calendar. Although it's not the most direct fix, it worked for me. Apparently Apple didn't think to give us the ability to choose the calendar color. I use Entourage and sync over the air. When I upgraded to iOS 4 my calendar turned bright red and the birthday calendar was blue. I don't use the birthday calendar so it isn't even enabled in my case. What finally worked was to go through the calendar colors one at a time by disabling and re-enabling the calendar in my mail account settings. I would double click the home button to quickly switch between settings and calendar to check the color each time I enabled the calendar. I had to do this 4 or 5 times to cycle through until blue came back up.

  • In working on a simple home budget,  how can I change the color of a negative number to red,  during the period the number is negative.    Thanks,

    Using Numbers spreadsheet and In working on a simple home budget,  how can I change the color of a number to RED when it  comes up negative.  (only during the time that it's negative)  Thanks,  ( I hope I did this right!!) 

    The Inspector offers choices of format for negative numbers when you choose Number of Currency as the format for a cell. Also offered when the format is set to Automatic, IF the selected cell(s) contain number(s).
    The choices are in the pop-up menu beside the box for number of decimal places.
    Regards,
    Barry

  • How can I change the color of birthday calendar?

    The birthday calendar in the new iPhone OS gets it color automatically. How can I change the color? It does not correspond to the color in iCal on my Mac.

    I figured out a solution for changing the other calendars but not the birthday calendar. Although it's not the most direct fix, it worked for me. Apparently Apple didn't think to give us the ability to choose the calendar color. I use Entourage and sync over the air. When I upgraded to iOS 4 my calendar turned bright red and the birthday calendar was blue. I don't use the birthday calendar so it isn't even enabled in my case. What finally worked was to go through the calendar colors one at a time by disabling and re-enabling the calendar in my mail account settings. I would double click the home button to quickly switch between settings and calendar to check the color each time I enabled the calendar. I had to do this 4 or 5 times to cycle through until blue came back up.

  • Changing the Color of an Object in Elements 4.0

    Neither of the two methods documented in Elements 4.0 to change the color of an object seem to work on my object. It is a fleur-de-lis that I extracted from a PDF an artist made for me some time ago. It's now black and I want to make it gold. What am I doing wrong?

    Harold McDougal wrote:
    The first is to select Enhance, Adjust Color, Change Color, select the color to be changed with the eye dropper and the color to change to in the bottom window. Then select okay. Okay. In my case, nothing happens.
    The color replacement command doesn't work on pure black or white. 
    If the design is black over white, try using a solid color fill and one of the lighten blend modes.
    How?
    Sample the gold color you want and have it as the foreground color chip.   Add a solid color adjustment layer over your  black and white design. The color should automatically be the foreground color in your tool box. Since should have changed this swatch to the desired shade of gold, it should be gold. Now, for the magic. If you change the blend mode of the solid color fill layer to "lighten", "screen", "linear dodge", or "lighter color", the black will be replaced by your gold.
    Note: I'm not sure which if any of the Elements versions includes the "lighter color" blend mode so if you can't find that one...don't panic.

  • How do I change the color of my text messages?

    Can you change the color of your messages?

    There are two colors but they are automatic: Blue if the message is an iMessage and green for SSM & MMS. You cannot change the color. More information on messages: http://support.apple.com/kb/HT3529

  • How can I change the colors of a photo?

    How can I change the colors in a photo?

    No. You'd need an external editor for that kind of stuff:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Of course, you may not want to change the shape of a photo which would distort it. You may want to print it in an oval shape but undistorted. I'd use a page layout app like Pages for that,

  • How do i do change the color(complete newbie)

    i want to have a special button inside the applet which will automatically change the color from red to yellow,
    HELP!!!
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class Cookie extends Applet
        implements AdjustmentListener {
        private Scrollbar slider;
        private int sliderValue;
        public void init () {
            slider = new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,51);
            add(slider);
            slider.addAdjustmentListener(this);
        public void paint (Graphics g) {
            showStatus("Scrollbar value is " + sliderValue);
              g.setColor(Color.black);
              g.drawRect(60, 60, 60, 100);
              g.setColor(Color.red);
              g.fillRect(60, 160-sliderValue, 60, sliderValue);
            g.fillRect(60, 60, 60, sliderValue);
        public void adjustmentValueChanged(AdjustmentEvent e) {
            sliderValue = slider.getValue();
            repaint();
    }

    This seems awfully familiar!
    Add a boolean to keep track of color.
    Your "special button" will have fire off an actionEvent, in actionPerformed set your boolean to true or false.
    In the paint method check for true or false of the boolean and setColor accordingly.

  • I am not able to change the color of my icloud calendar.

    Hi,
    my icloud calendar changed the color of my personal calender to purple and I have no chance to undo that. Everytime I try to change it back to blue it automatically jumps back to purple.
    Does anybody have an idea to solve this issue?
    Kind regards
    -Torsten-

    Have you checked your iCloud settings on your Mac or PC. And if you are using a Mac, have you also activated Photo Stream for iPhoto or Aperture?
    Please see also: iCloud: How to set up: http://www.apple.com/icloud/setup/
    Please see also: iCloud: My Photo Stream FAQ: https://support.apple.com/kb/HT4486

  • How to Change Link Color Across Document

    I have a 175 page PDF and figured out how to make all the web addresses hyperlinks document wide. Now, I'd like them all to be blue (right now they're defaulting to black). How do I do this? Thank you.

    Its not easy. in fact it would have been easier to have changed the color first then added the links.
    first open the touch up text by click on its button.
    next click in a blank space before the link, space over with the left arrow key (end key) until just touch first letter of the link.
    now hold down the shift key while  hitting end key repeated ly until link is selected. now from File menu choose properties choose apperance and click the Box that is filled in with a color. chhose apropriate color  click okay until you get out.
    Repeat  the process until all the link colors are changed. By the way the PC version of Acrobat does this automatically. Anotherway Adobe slights Mac Users. And to beat it all were it not for Apple Adobe would have started.

  • How can i change the color of pen tool in photoshop cs6?

    I want to change the color vector of pen tool in photoshop cs6?

    Just to make sure we're communicating properly...
    Is it that while creating a path you want the thin lines, handles, etc. to be a different color?
    Or is it that after you create your path you want to stroke it with a color?  It IS possible to stroke a path, and even to have an automatic Layer Stroke on a path that's any size/color shape you want.  Example:
    -Noel

Maybe you are looking for

  • Three very annoying issues I'm having with my MacBook Pro... PLEASE HELP!

    Alright I received my refurbished *2.4GHz MacBook Pro with 256 Vram* in the mail a few days ago. Since then I've had 3 reoccurring problems that are extremely annoying.. 1. *_The MBP will not hold a WiFi connection_*. +The AirPort is always in scanni

  • ITunes thinks I don't live in the US

    Someone sent me a file from iTunes that I couldn't open because at the time I was living in Germany. Now I moved the the US and want to view the file but iTunes continues to give me the error message (in German) that this product is only available in

  • Firefox does not start on second desktop

    I am using the free Sysinternals product called [http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx Desktops ] (desktops.exe) to allow for more than one desktop in Window 7. Not too long ago, I used to be able to start a Firefox instance o

  • OmniFocus and the Home button

    I've installed OmniFocus for the iPad and synchronised it with OmniFocus for Mac; love the software, love the features. Excellent stuff. Very highly recommended. However, since this installation I have had intermittent problems with the Home button o

  • Another N82 query - Menu Icon Animation

    Yes, I have too much time on my hands today, but seeing as people have been so helpful of late- I read in the N82 user guide (p97 in fact) that menu icon animation should be an option, and can be turned on and off. But I assumed that this was an erro