
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Description
This is my spin on a RGBA module for use by theme engines that support RGBA colormaps, such as Murrine SVN.
Usage
1. Ensure your system has the proper development packages installed for Gtk+ development. Compile the source file via this command:
gcc -O2 -fPIC -shared `pkg-config --cflags --libs gtk+-2.0` librgba.c -o librgba.so
2. Copy librgba.so to /usr/lib/gtk-2.0/modules
3. Add this line to your ~/.profile file:
export GTK_MODULES=rgba
4. Restart your session by logging out and logging in to load up the module.
5. Create a file called rgba.conf in the directory ~/.config/gtk-2.0
Read below for information regarding the format of this file and how to use it.
6. Enjoy!
Configuration
Each line in rgba.conf is a pattern to match the name of the running program against. The patterns use standard glob notation (* and ? for matching). Lines prefixed with # are ignored. Lines prefixed with a ! character invert the match. By default, RGBA is disabled for the application. If a pattern evaluates to true (before inversion from a !), no further patterns in the file will be tested, and RGBA is enabled for the application depending on the result of the evaluation (post inversion, if specified).
Here is an example rgba.conf:
# this configuration is a series of invert patterns, so all applications that do not match one of these patterns will have RGBA enabled
# gksu[do] don't like RGBA
!gksu*
# disable all applets
!*applet*
# these applications use Gtk, but for widget rendering only. (gecko stuff, wxGTK apps). Not RGBA compatible
!audacity
!firefox*
!thunderbird*
# no to gnome panel
!gnome-panel
# other RGBA troublesome apps
!gthumb
!nautilus
!pidgin
Another example:
# disallow bluetooth-applet
!bluetooth-applet
# but allow all the other bluetooth apps
bluetooth-*
# allow only these apps
gedit
eog
gcalctool
gnome-sound-*
gnome-volume-control
11 years ago
0.0.4.1
Reverted Cimi's suggested change as it caused many problems when logging into Gnome.
0.0.4
Updated per Cimi's suggestion. Thanks!
0.0.3
Disable "unknown" apps (Java GTK apps, Qt apps using QGtkStyle, etc...)
0.0.2
Have the module print the program name and RGBA status to the console. Useful for making filters against troublesome apps.
11 years ago
0.0.4.1
Reverted Cimi's suggested change as it caused many problems when logging into Gnome.
0.0.4
Updated per Cimi's suggestion. Thanks!
0.0.3
Disable "unknown" apps (Java GTK apps, Qt apps using QGtkStyle, etc...)
0.0.2
Have the module print the program name and RGBA status to the console. Useful for making filters against troublesome apps.
LuxieRayku
10 years ago
Report
Janhouse
11 years ago
!exe
to the config or flash player will crash.
Report
Enzo01
11 years ago
Any suggestions how to solve the problem?
Report
noka02
11 years ago
Report
95monye
11 years ago
Report
libihero
11 years ago
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
gcc: librgba.c: No such file or directory
gcc: no input files
what do i do? :(
Report
TiZ
11 years ago
Report
Tedil
11 years ago
I also linked your module here: http://www.gnome-look.org/content/show.php?content=101468
Thanks for enabling (almost) global rgba ;)
Report
jarryson
11 years ago
gnome-globalmenu need globalmnu-gnome module. this need rgba moudule.
i tried "gcc -O2 -fPIC -shared `pkg-config --cflags --libs libgnomenu` librgba.c -o librgba.so" but not work.
Report
jarryson
11 years ago
should not "g_get_home_dir(), config" be g_get_user_config_dir()?
according to XDG standards..
Report
cmost
11 years ago
Report
berkanan
11 years ago
Report
cmost
11 years ago
Report
cimi86
11 years ago
if(colormap && gdk_screen_is_composited(screen))
but you should not check if the screen is composited, because you may have a rgba colormap on a screen without a composited window manager currently running. If you start an application and then you run compiz, the application requires restart with your code.
Report
berkanan
11 years ago
Report
cimi86
11 years ago
Checking for the composited screen is not the right approach.
Report
berkanan
11 years ago
Report
cimi86
11 years ago
if(colormap && gdk_screen_is_composited(screen))
but you should not check if the screen is composited, because you may have a rgba colormap on a screen without a composited window manager currently running. If you start an application and then you run compiz, the application requires restart with your code.
Report
berkanan
11 years ago
Report
zniavre
11 years ago
im trying your patch . it works quite well
in fact not better than first patch but not worst
what is good is the point i do not need to relog to make rgba.conf activated.
nautilus seem bugged again
and application with notification icon on systray also (pidgin first).
so im still ready to try your patch if you are working on it.
thank you very much. keep working
Report