Lemonbar can't allocate colors! - Desktop Customization & Workflow

Users browsing this thread: 1 Guest(s)
dkeg
Members
sorry, I sent you down the wrong track. Background and foreground global colors do not require the %{B} or %{F} piece. Also the way you're implementing it is off.
You can do it as you have, but you'll give lemonbar its paramenters when you pipe your script through it
Code:
script|lemonbar -F "#FFffffff" -B "#FF000000"
OR you can set the script as
Code:
#!/usr/bin/bash

# Define the clock
Clock() {
        DATE=$(date "+%a %b %d, %T")

        echo -n "$DATE"
}

# Print the clock

while true; do
        echo "%{c}$(Clock)"
        sleep 1;
done | lemonbar -F "#FFffffff" -B "#FF000000"
If you wanted to change the color of BG or Text for a different output. Say if you added memory, and you wanted the bg of memory to be white with black text instead, you would do
Code:
echo "%{F#FF000000}%{B#FFffffff}$(mem)%{F-}%{B-}%{c}$(Clock)"
Hope that helps
work hard, complain less


Messages In This Thread
Lemonbar can't allocate colors! - by nekrilia - 02-08-2015, 03:25 AM
RE: Lemonbar can't allocate colors! - by dkeg - 02-08-2015, 12:08 PM
RE: Lemonbar can't allocate colors! - by nekrilia - 02-08-2015, 02:59 PM
RE: Lemonbar can't allocate colors! - by dkeg - 02-08-2015, 05:19 PM
RE: Lemonbar can't allocate colors! - by nekrilia - 02-08-2015, 05:41 PM
RE: Lemonbar can't allocate colors! - by dkeg - 02-08-2015, 07:08 PM
RE: Lemonbar can't allocate colors! - by nekrilia - 02-08-2015, 08:15 PM
RE: Lemonbar can't allocate colors! - by dkeg - 02-08-2015, 09:46 PM
RE: Lemonbar can't allocate colors! - by nekrilia - 02-08-2015, 11:01 PM
RE: Lemonbar can't allocate colors! - by io86 - 03-08-2015, 04:34 AM
RE: Lemonbar can't allocate colors! - by z3bra - 03-08-2015, 07:53 AM
RE: Lemonbar can't allocate colors! - by nekrilia - 03-08-2015, 04:40 PM
RE: Lemonbar can't allocate colors! - by z3bra - 04-08-2015, 04:25 AM
RE: Lemonbar can't allocate colors! - by venam - 04-08-2015, 04:38 AM
RE: Lemonbar can't allocate colors! - by nekrilia - 04-08-2015, 01:02 PM