Allow GTK (v1 and v2) overrides.
authorIain Patterson <me@iain.cx>
Thu, 25 Aug 2011 09:54:53 +0000 (10:54 +0100)
committerIain Patterson <me@iain.cx>
Thu, 25 Aug 2011 10:18:44 +0000 (11:18 +0100)
Allow including a local GTKv1 theme by creating a symlink in ~/.themes
named "theme" which points to the theme directory (containing gtkrc).
Allow including a local GTKv2 theme by creating a symlink in ~/.themes
named "theme-2.0" pointing to the directory containing the v2 gtkrc.
Allow including local overrides in ~/.themes/override (resp.
override-2.0).

Also do the right thing for GNOME themes.

.gtkrc [new file with mode: 0644]
.gtkrc-2.0 [new file with mode: 0644]
.gtkrc.mine [new file with mode: 0644]

diff --git a/.gtkrc b/.gtkrc
new file mode 100644 (file)
index 0000000..9dd1111
--- /dev/null
+++ b/.gtkrc
@@ -0,0 +1,5 @@
+# GTK 1 theme.
+# Create the ".themes/theme" symlink in .themes pointing to the local theme.
+include ".themes/theme-2.0/gtkrc"
+# Add local overrides to the ".themes/override" file.
+include ".themes/override"
diff --git a/.gtkrc-2.0 b/.gtkrc-2.0
new file mode 100644 (file)
index 0000000..c5498b2
--- /dev/null
@@ -0,0 +1,5 @@
+# GTK 2 theme.
+# Create the ".themes/theme-2.0" symlink in .themes pointing to the local theme.
+include ".themes/theme-2.0/gtkrc"
+# Add local overrides to the ".themes/override-2.0" file.
+include ".themes/override-2.0"
diff --git a/.gtkrc.mine b/.gtkrc.mine
new file mode 100644 (file)
index 0000000..a4e96dc
--- /dev/null
@@ -0,0 +1,4 @@
+# GNOME GTK theme.
+# The theme is managed in .gktrc-1.2-gnome(2) which then includes this file.
+# Add local overrides to the ".themes/override" file.
+include ".themes/override"