Harsh J

Memoirs of a QWERTY Keyboard

Archive for the ‘KDE4’ tag

KDE and the .gtkrc

leave a comment

In my quest to have a perfectly usable dark theme I found I would require two things:


Having acquired those, I went on to install and select them via System Settings’s Appearance applet and all my Qt4+KDE4 applications looked neat in their dark avatars. Next I had to make Chromium reflect and respect the native theme settings and found an option for it to “Use GTK Theme” under Settings – Options – Personal Stuff.

However upon switching that on I realized that GTK themes were indeed showing the coloring of darkPearl right but not the widget styling that the darkPearl + QtCurve provide together, despite placing a proper QtCurve .gtkrc and its other known aliases at all key positions. Sometimes it’d work after doing the last action, but only for the current KDE session and it would all go back to simple-coloring hell post a re-logon.

The solution to this was apparently under System Settings’s Appearance – Colors applet itself. I’d missed an option under the Options tab of Colors that said “Apply color to non-KDE4 Applications“. Un-check this and the custom .gtkrc you place sticks like its supposed to. Chromium looks great now! So does GIMP, the second of the two GTK-using applications I use.

Written by Harsh

April 17th, 2010 at 4:41 pm

Color Hot-Tracking in Smooth Tasks Plasmoid

3 comments

Polishing your K Desktop never seems to stop. First its the Desktop appearances, the plethora of widgets available to choose and use from for the desktop and the taskbar, the hilighting schemes in Kate/KWrite, it keeps going on. Maybe a bad thing – you never settle.

I was trying out the kde-extragear-plasmoids AUR package yesterday on my ArchLinux’s plain KDE installation and I came across this wonderful plasmoid known as Smooth Tasks. While nothing innovative in itself, its a simple plasmoid that apes the Windows 7 taskbar. Provides icon views of the applications running and allows peeking into them when hovered upon, and if grouped – lets you switch using the previews. I’ll leave the screenshots to do the rest of explanation.

What I liked most about Windows 7 is its ability to color the hover-glow on the icons in the taskbar based on the average computed color of the icon itself. This feature, as explained by Long Zheng, “delivers some sentimental value by making it easy to identify applications by color.” I completely agree with that point. However, Smooth Tasks missed this feature, and the built in light feature didn’t move entirely with the mouse pointer as well.

I cloned the code today to add, at least an initial working version, the color hot-tracking to Smooth Tasks and it was done by the afternoon. I’ve pushed the changes to the Smooth Tasks fork over at Bitbucket (which is a great site, by the way) and the image below describes how the initial work looks like. Notice the soft color glow. Here are some more pictures, with other icons.

Color Hot-tracking in Smooth Tasks on KDE

Color Hot-tracking in Smooth Tasks on KDE

Now all I’ve to figure out is a way to enhance the glow or another component of the effect to give it a more polished look. Windows 7 also colors the border of the taskbar item with the average color but that’s not possible with the way the KDE’s glow around items work, as far as I know. Please let me know if am wrong.

You need to a flashplayer enabled browser to view this YouTube video

Written by Harsh

October 10th, 2009 at 1:25 pm

The case of the non-exiting Mozilla Firefox

9 comments

Being a KDE user has its ups and downs. The ups are that its beautiful, has a very wide and usable range of applications, updates often for bugfixes, and is generally very customizable. The downs are a few – with the Firefox+GTK integration being one of them. It makes your browser look UGLY! Of course, there are Qt-friendly browsers like Opera and Konqueror, even Arora, but these hardly work well with many sites, especially those of Google (Wave, for example). I’m not gonna delve into that subject, since this post is about using Firefox on KDE 4 (version 4.3.x).

You might have heard of the GTK engine that themes for Qt, known as gtk-engine-qt on most distributions (or with -kde4 suffix, if thats how they’ve integrated). This helps all GTK applications look great on KDE by providing *near* native look and feel. So I install that and smile, happy that my entire K Desktop is as I want it – dark, without gloss and perfectly usable with certain plasma widgets. That is until I notice my Firefox simply does not close itself when asked to, and hangs instead.

At first one would think its due to a plugin, or an extension, probably something added on that is causing it to hang when its supposed to terminate. Even the KB article at Mozillazine supports that fact. Perhaps its a popular reason, but I tried and it didn’t solve the issue for me. I jumped a few steps out of frustration and went on to move my .mozilla directory to a different name, just to see if it was a profile-related issue, and it still refused to close, driving me mad having to `killall firefox` it each time since it always hung at exit. So I switched to Opera and used it with horrible colors – Pages appeared normally as they would be rendered but the forms and other things just didn’t go well with my dark color scheme (Eclipse), making it appear like the image below, unreadable and thus untypable upon.

Unreadable, Unseeable - The form elements as they appear in my Opera (While using a dark color scheme in the DE)

Unreadable, Unseeable - The form elements as they appear in my Opera (While using a dark color scheme in the DE)

The browser’s great otherwise, its fast and very customizable, but I couldn’t make any changes to these colors. I suppose one can achieve it by writing their own userstyle.css file but that is too much work. Used Opera until today, when I finally found this (pretty old) bug in the gtk-engine-qt project tracker. Uninstalled gtk-engine-qt and lo, all was normal again, closed fine and opened fine. Re-installed all plugins and extensions, and said bye-bye to Opera.

All I now miss is a native-looking dark theme with Oxygen icons, as my K Desktop contains. I’m making do with the Black Stratini theme as of now, it’s beautiful but I like the Oxygen icons better. 440 words for just the choice of browser on a dark theme, tch.

Written by Harsh

October 9th, 2009 at 10:02 am

KDE 4.1.0

6 comments

Just upgraded to it on Gentoo (via kdesvn-portage overlay).

KDE 4.1.0

KDE 4.1.0

Its pretty much usable now than when I had tried before (4.0 alpha). I like the new way of selecting files Dolphin has to offer, a nice round clicker that appears on hover. Besides that, Dolphin’s file-preview has improved a whole lot, giving previews for almost anything under that hard-drive cover.

Plasmoids are nice things, but I feel they waste too much space and aren’t always persistent with their configuration options – making me have to re-enter my preferences all the time. But its good, I’ve even gotten used to KDE-Twitter as my desktop twittering application. But the Plasma and Plasmoids are a very unstable feature of KDE right now, with changes happening in the svn every other day.

I’ve been a GNOME user all these days, so the shift to KDE 4 was very much troublesome. In installation terms I mean. I don’t have, nor would like to have, KDE3 libs installed so am pretty much stuck with only what KDE4 wishes to offer and am using only those. Its got Okular (PDF Viewer), K3B (Burn Baby Burn) and GwenView (Image Viewer) and these suffice for my daily tasks as of now since I rely on irssi/bitlbee/ncmpc and rtorrent command-line applications for the other deeds of mine.

The worst part of KDE is the how it makes GTK applications look. You’ll have a hard time with Firefox, a really hard time. I tried for around 4 hours changing GTK styles, cycling through many and installing some more, but in the end I had to build Opera-Qt4 and be done with Firefox 3. It were slow too, on my Prescott P4 3.0 GHz system anyway. Will use Firefox again when I get my new PC. Opera is being okayish, I’ve hidden the menus so that it doesn’t look ugly too.

My Desktop

KDE4 Desktop

KDE4 Desktop

Konsole still needs a lot of work as a terminal emulator. Kate is awesome and I even configured it for my liking and it was way easier to theme it than it were for Gedit. I’ll quit using Kate in a few days as I learn more of vim (I’ve been very slow on this part) so there goes another KDE dependency.

About the media players, my KDE set had two basic ones included in it – Dragon and Juk. Dragon is a simple Video/CD/DVD player while Juk plays my music files. The quality exhibited by Dragon was far less than what MPlayer could show (I use SMPlayer as my MPlayer frontend) but nevertheless, its basic interface covered many features including video enhancements while playing etc. Juk on the other hand was nice as a media player but I feel it could do better with a differently styled media-browser than the vanilla Winamp style one it uses. Plus since it had no Last.fm integration, I decided not to set it as my default player and continued to use MPD/MPC.

The Control Center has gone away to be replaced with System Settings. It still lacks a switch to take you to root level for modifying certain special properties but that can be done via a sudo command from the command line. Apart from that the entire management application seems fine with a nice new interface for configuring things. I especially like the new color-setting interfaces available across KDE4.

Will be using this for quite some time, seeing how much its improved from KDE 4.0.0, I would be expecting it to get far better over the next 2 releases to become one of the best DE ever. GTK/GNOME seems far behind KDE’s awesomeness and  Qt’s cross-platform power, way far behind.

Written by Harsh

August 4th, 2008 at 11:11 am