Home » Linux

Configuring Mouse Cursor Style for GTK Applications in KDE Desktop

By: Zhiqiang Ma On: Jul 13, 2010 Views: 217 Comment: 1 Print Email
Tags: , , , , , , , , ,

One annoying thing when using KDE desktop is that the theme and style of GTK applications differ from KDE’s. The gtk-qt-engine can let us select the theme for GTK applications in KDE desktop environment. But the mouse cursors for GTK application and QT applications are different if we set the cursor style in KDE’s setting tools. The cursor for GTK application changes to the default one when moving cursor from the desktop to GTK application such as Firefox. The is quite annoying. In this article, we will introduce a piece of tip to make the cursor the same style in both GTK and QT applications.

First, the gtk-qt-engine should have been installed to configure the theme for GTK application. If not, install it like this:

# yum install gtk-qt-engine

You can find the cursor icons which you are using in KDE under /usr/share/icons/. Let’s use “Oxygen_Blue” which is my favourite one as the example.

After installing gtk-qt-engine, there is one configuration file for it: ~/.gtkrc-2.0-kde4. It may be a little different depending on the package version.

To set the cursor icon theme for GTK application to “Oxygen_Blue”, add this line into ~/.gtkrc-2.0-kde4:

gtk-cursor-theme-name="Oxygen_BLUE"

It can be changed to any icon theme’s name that we like. We may need to reload the KDE desktop after changing it. After reloading the desktop environment, try to open a GTK application and see whether the icons are the same in both kind of applications.

Read more:

Digg del.icio.us Stumble Techorati Facebook Newsvine Reddit Twitter
Mixx LinkedIn Google Bookmark Yahoo Bookmark MySpace LiveJournal Blogger RSS feed

One Comment »

  • sorry said:

    Great article, it works like a charm…

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.