themeinfo



Contents

  1. Introduction
  2. Dependencies
  3. Installation
  4. Setup

Introduction

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.

Dependencies

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').

Installation

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.

Setup

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.

Colors

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

Automatic Configuration

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.

1. Window Mananager

themeinfo supports the following window managers:

  1. Awesome
  2. dwm
  3. Emerald
  4. Kwin
  5. Kwin4
  6. Metacity
  7. Openbox
  8. PekWM
  9. wmii
  10. Xfwm4

(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.

2. GTK/QT Theme

themeinfo can detect your GTK theme if you are using:

  1. GNOME
  2. Xfce
  3. the ~/.gtkrc.mine file to set your GTK theme
  4. GTK apps inside KDE4

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:

  1. KDE
  2. KDE 4

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.

3. Application Font

themeinfo can detect your application font if you are using:

  1. GNOME, gconf, or gnome-settings-daemon
  2. Xfce or mcs
  3. ~/.gtkrc.mine file
  4. KDE
  5. KDE 4

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.

4. Terminal Font

themeinfo can detect your terminal font if you are using one of the following terminal emulators:

  1. gnome-terminal
  2. tilda
  3. urxvt
  4. xfce4-terminal

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.

5. Icon theme

themeinfo can detect your icon theme if you are using:

  1. GNOME, gconf, or gnome-settings-daemon
  2. Xfce or mcs settings
  3. ~/.gtkrc.mine file
  4. KDE
  5. KDE 4

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.

6. Wallpaper

themeinfo can detect your wallpaper if you are using:

  1. GNOME/Nautilus to set your wallpaper as a picture
  2. GNOME/Nautilus to set your background as plain colors
  3. feh
  4. Xfce
  5. KDE
  6. KDE 4
  7. Fluxbox

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.


SourceForge.net Logo

Valid XHTML 1.0 Strict