Home · Download · Documentation · Screenshots · Contact |
Contents |
themeinfo is a python script written to display information about the current user interface inside a terminal emulator. A wide variety of Linux desktop environments and window managers are supported with more on the way.
themeinfo has only one true dependency: python 2.5 or higher. The following python modules are required:
If you use GNOME, you will need to install the Python bindings for Gconf2 (the Ubuntu package name is 'python-gconf').
To install theme info, download the source tarball here. No compiling is required. Simply extract the tarball and move the script file (called 'themeinfo') to the directory from which you would like to execute it. The recommended location is ~/bin but any other directory will work just as well.
Before you run the script, you must set a few variables so it knows what to look for. Open the themeinfo file with a text editor and scroll down to line 34. Here you will see the options section.
Starting at line 16 is a list of "colors". I have no idea how these actually work, but I think that these strange sequences are actually special variables that bash interprets as "set the color of the following text to x" where x is depends on what the sequence actually is. All you need to worry about is what is in between the double quotes.
Scroll down to line 37. Here, you can configure your color options. color1 is the color of your distro. So, if you want the name of your distro printed in red, you would set line 42 to look like this:
color1 = "\033[1;31m"
Or, if you want it to be the same color as regular terminal text:
color1 = ""
The same procedure applies to color2 at line 47. This variable applies to the label of your theme information attributes (such as "Icons", "GTK", and so on). Your actual theme information (Such as "Crashbit" or "Clearlooks") will print in the same color as regular terminal text
themeinfo will try to figure out your information automatically if you are using a standard desktop environment setup. There is a list of possible options at line 54. Set the variable 'default_de' to the number correspoding to your desktop environment. If you find that this doesn't work for you, try the custom setup, option 13.
If the automatic configuration does work, then your setup is complete and you can skip to the screenshot section.
themeinfo supports the following window managers:
(Support for Fluxbox is on the way.) Set the value of 'print_wm' to the number corresponding to your windowmanager. If your window manager isn't listed, or you don't want to display information about your window manager, set 'print_wm' to 11.
themeinfo can detect your GTK theme if you are using:
Set 'print_gtk' to the number corresponding to the method that you use to set your GTK theme. If your method isn't listed, or if you don't want to display information about your GTK theme, set 'print_gtk' to 5.
Themeinfo can detect your QT style if you are using:
Set 'print_qt' to the number corresponding to the method that you use to set your KDE style. If you aren't using any QT/KDE applications, set 'print_qt' to 3.
themeinfo can detect your application font if you are using:
Set 'print_font' to the number corresponding to the method that you use to set your application font. If you use some other method, or if you don't want to display information about your application font, set 'print_font' to 6.
themeinfo can detect your terminal font if you are using one of the following terminal emulators:
Support for konsole is on the way. Set 'print_font' to the number corresponding to your terminal emulator. If you use some other terminal emulator, or if you don't want to display information about your terminal font, set 'print_term' to 5.
themeinfo can detect your icon theme if you are using:
Set 'print_icons' to the number corresponding to method. If you use some other method, or if you don't want to display information about your icon theme, set 'print_icons' to 6.
themeinfo can detect your wallpaper if you are using:
Set 'print_wall' to the number corresponding to method. If you use some other method, or if you don't want to display information about your wallpaper, set 'print_wall' to 8.