Ttk applications like git-gui
and gitk
look ugly by default on Linux because the default Ttk tries to emulate Motif.
Here is how to make them less ugly.
-
Choose a Ttk theme. A partial list is provided by the official wiki of TCL.
-
If the chosen a theme that is not built-in:
- If not already done, create a directory dedicated to Ttk themes. Example:
mkdir ~/.local/share/tk-themes
- Put the theme’s directory (there should be a
pkgIndex.tcl
file at its root) in it. For example, if we want theClearlooks
theme, we copy the content of thethemes/clearlooks
directory of the “Ttk themes” project (see the link above) in~/.local/share/tk-themes/clearlooks
- If not already done, add the line
export TCLLIBPATH=<directory>
(where<directory>
is the path to the directory where you put your Ttk themes) to your~/.profile
file (or whatever the script that executes when you log in). Example:echo 'export TCLLIBPATH="${HOME}/.local/share/tk-themes"' >> ~/.profile
- If not already done, create a directory dedicated to Ttk themes. Example:
-
Set
*TkTheme
to your chosen theme in your~/.Xresources
file. Example of configuration line:*TkTheme: clearlooks
-
Restart your X session or run
xrdb -merge ~/.Xresources && source ~/.profile