I also use some selfmade environment variables in my ~/.bash_profile. When you use "xrdb -merge" you don't even have to comment out the according values in ~/.Xresources. Read -n 1 -p "Do you want to adjust the Xapp's look manually (y), or apply GTK-colors (n), or add the Xcolors (x) ? (y/n/x)? " choice # are we running this interactively? see /LDP/abs/html/intandnonint.htmlĮcho 'One or more colors are undefined, please set manually' # GTK2_CURRENT_THEME is probably already part of the env (at least on my systems) Printf "XCalc.ti.Command.foreground: $forg Printf "XCalc.ti.Command.background: $back #~ forg=$(yad -color -title "Choose foreground color") #~ back=$(yad -color -title "Choose background color") dzen or lemonbar you can define the colors by colr, according to your xcolors in use ) ( Wery useful, for example when you run f.e. Remove or comment out any back-, or foreground values by putting a "!" for the line.Ĭolr is a simple sript showing you the hex color codes of your xcolors by color names. It offers also a choice to pick your colors you like. When not, then opens the gtkrc file in the default text editor, and prompts you to look for it, and put in manually. In the case your theme gtkrc contains a properly set up color-scheme on-liner, then the script grabs the colors. (they can be customized only by Xresources) It grabs the bg and fg colors from the current theme, and set them as back or freground for the Xapps. I made up a stupid little script from snippets mainly from the BBQLinux forums, to adjust the look of some xapps (xfontsel, xman, xpaint etc) according the current GTK theme.
0 Comments
Leave a Reply. |