I live in Omaha.
 
Navigation
 
Search
 
Random Image
Portrait (52)
 
Me. Elsewhere.
 
Archives
 
Darcy
 
Recently Read
 
Things I Like
EFF
 
License
 
KolorTool For KDE 4

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!

Posted July 17th, 2009 - Permalink
Categories: Geek
Tags: , , , , , ,
You can leave a comment, or trackback from your own site.
 
Possibly Related Posts
 
Adjacent Posts
 
Comments
 
Copyright © 2006 - 2010 John Hobbs
get userping