You are not logged in.

#1 2013-10-31 10:08:20

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

hex color of x app in awesome wm

so in my awesome rc.lua i define my menu items as such

ex:

webbie = "arora -bg darkslategrey"
fm = "worker"

-- etc --

then for menu items i do as

web = {
  { "Browser", arora }
}

however .. rather than use a defined color i would like to do summin as such

webbie = "arora -bg "#222222""

however that gives my rc.lua a headache and a crash back to default

(hope this is enough info)

i would like to set an x app to a hex color defined in my rc.lua unless there is a better way

plz n ty for the help

Last edited by VanillaFunk (2013-10-31 10:22:05)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#2 2013-10-31 11:27:33

spcode
Member
Registered: 2013-10-26
Posts: 27

Re: hex color of x app in awesome wm

I don't use Awesome, but that definition would crash every single scripting/programming language I know.

Have you tried to remove those unescaped double quotes?

webbie = "arora -bg #222222"

Last edited by spcode (2013-10-31 11:28:33)

Offline

#3 2013-10-31 12:10:09

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: hex color of x app in awesome wm

yea i have... just did it again to double check but when i remove the quotes it defaults and no color change is used. i also tried

export AROCOLOR="#222222"

and inserting that in with

webbie = "arora -bg ${AROCOLOR}"

but that does the same nothing that removing the quotes does.

-- edit --

only other thing i could think of was defining a color in X's color file. (rgb.txt)
gonna see if i can find it as its not in "/lib/X11/"

Last edited by VanillaFunk (2013-10-31 12:43:44)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#4 2013-10-31 22:35:03

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: hex color of x app in awesome wm

so i read up a bit more ... rgb.txt is depricated and i found the answer lies in setting xresources.  the command to put in xinitrc i get however when i define colors in .Xresources they dont seem to work for arora

assuming i understand the wiki i should be able to define colors   i am not sure how much i wanna set as such as im very sure im not entirely understanding ... i would then :

arora.background: #222222

ill look more into this unless some one can explain better to me. sometimes i need to reread things 4 or 5 times and im not understanding the wiki as its not working

https://wiki.archlinux.org/index.php/X_resources
is what im reading through in case anyone is familiar with this page

Last edited by VanillaFunk (2013-10-31 22:56:06)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

Board footer

Powered by FluxBB