Let's use gedit as an example.
I would:
1. Create a
~/.gktrc-2.0.gedit file that contains whatever gtk2 settings I want
2. Create a shell script called launch-gedit.sh with the following lines:
Code:
#!/bin/bash
cp ~/.gktrc-2.0.gedit ~/.gtkrc-2.0
gedit
Launch gedit with the launch-gedit.sh script.
Presto; gedit now starts with its own gtk2 theme!