Search: Kolortool

KolorTool For KDE 4

July 17, 2009 » Geek

Update (2009-07-25)
Turns out what I needed was KColorChooser in KDE4. Oh well :-)

Maybe I’m blind, but I can’t find a nice, simple color tool on KDE 4 for my life. The color picker Plasmoid is okay, but it doesn’t do what I want: to mangle colors and get the resulting hex values.

To fix this, I threw together this little Python bit and installed it as KolorTool. Does what I need, just throws up a color dialog for me to play with.

Pretty simple...

KolorTool

#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui
from PyKDE4 import kdeui

app = QtGui.QApplication(sys.argv)
picker = kdeui.KColorDialog();
picker.show();

sys.exit(app.exec_());

KolorTool.desktop

[Desktop Entry]
Comment[en_US]=
Comment=
Exec=~/System/bin/KolorTool
GenericName[en_US]=Color Picker Dialog
GenericName=Color Picker Dialog
Icon=kcolorchooser
MimeType=
Name[en_US]=KolorTool
Name=KolorTool
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Enjoy, modify and let me know if there is an existing, standard tool like this please!

Getting scripts and shortcuts to show in KDE4 Runner

December 8, 2009 » Geek

I tend to write little tidbits that I like to use in KDE fairly often, or custom shortcuts for launching applications. Every time I do this though, I forget how I got the last one to show up in krunner. This is just a quick guide to what I do, to remind myself and to show you.

1. Move script to somewhere in my path (I use ~/System/bin for no apparent reason)
2. Create a .desktop file
3. Move .desktop file to ~/.kde/share/applnk/
4. Run kbuildsycoca4 to rebuild the KDE4 cache
5. Restart krunner.

I also came across kappfinder, pictured below, that finds applications that aren’t in the menu system for some reason (only added to Gnome or something). Not useful for this application, but handy to know, and related.

kappfinder

Tags: ,