So I made a script to switch themes, But I also wanted the user to be able to change the metacity theme. For example, If A user typed this:
Now this would switch the Gnome Theme And the Metacity Theme.Code:sh switch-theme Human
This code is the problem.
But this will change the Metacity theme and Gnome Theme to Human, When it should change the metacity theme to Glossy and change the gnome theme to Human.((Changing the gnome theme works fine.)Code:sh switch-theme Human Glossy
Here is the script's code.
Code:#!/bin/bash gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme $1 if [ $2=0 ] then gconftool-2 --type string --set /apps/metacity/general/theme $1 else gconftool-2 --type string --set /apps/metacity/general/theme $2 fi
Bookmarks