基于先前的答案:
对于11.10
#!/bin/bash
if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]
then
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
gconftool-2 --set --type string /apps/metacity/general/theme 'Ambiance'
gsettings set org.gnome.desktop.interface icon-theme 'Faenza-Ambiance'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
gconftool-2 --set --type string /apps/metacity/general/theme 'Adwaita'
gsettings set org.gnome.desktop.interface icon-theme 'Faenza'
fi
对于12.04和12.10
#!/bin/bash
if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]
then
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark'
gsettings set org.gnome.desktop.wm.preferences theme 'Ambiance'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
gsettings set org.gnome.desktop.interface icon-theme 'gnome'
gsettings set org.gnome.desktop.wm.preferences theme 'Adwaita'
fi
将此脚本添加到Startup Applications
(Add => Command sh path/to/script
)。