Kommando

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

Kommando is a "Neverwinter Nights" like wheelmenu for KDE. It allows rapid access to user defined applications and shell commands and is of course a nice toy to show off with ;-)

NOTE: Works best with a spare mousebutton and imwheel: http://imwheel.sourceforge.net/

INSTALL and README should cover all (well, most) questions.

UPGRADE FROM VERSION 0.1.x: please read INSTALL on how to go on using your custom settings (hope it was the last time I broke the configfile...)

UPGRADE FROM VERSION 0.3.0 or below:
The config file was put to the default kde config directory, read INSTALL for further informations

VERSION 0.5.0:
This version introduces several changes. First of all the kded patch has been made official, because i was tired of maintainig two branches and of course because I think it is a nice feature. Along with this Kommando is now configured through KControl. Just head to the section Desktop to find the config menu. These two patches have been created by Sergio Cambra. Thanks for your help!
Another neat thing are context sensitive menus. To see what they are good for, copy the included kommandorc file to the Kommando dir under ~/.kde/share/apps

Tested on SuSe 10.1 with KDE 3.5.5

In the tarball I provided a patch (thanks to Sergio Cambra), which lets you run kommando as a Kded module, so it runs in background and you are not bothered by the tray icon any longer. Informations can be found in the README.kded file. Thanks for testing!

There is a Gentoo ebuild by Baldrun Orv available. I put it on rapidshare and made an md5 hash available for the ones like me who don't trust hosting services...
Last changelog:

14 years ago

21.08.2007 Kommando v0.5.2:
-clicking with the middle mousebutton excutes commands

16.11.2006 Kommando v0.5.1:
-added a "add menu from kmenu" feature (again a patch by Sergio)

14.11.2006 Kommando v0.5.0:
-added context sensitive menus
-running as kded module (huge thanks to Sergio Cambra)
-configuration via a KControl module (again thanks to Sergio)
-fixed button drawing code and eliminated flickering
-code cleanups (myself and Sergio Cambra)
-major refactoring of the menu code
-fixed some of my own most hated bugs

20.01.2006 Kommando v0.4.1:
IF v0.4.0 WORKS THERE IS NO NEED TO UPGRADE!
-fixed a compile bug
-corrected the application type to KUniqueApplication to make dcop work "properly" again
-automatically move config file to the new location (initial patch provided by Sune Vuorela)

17.01.2006 Kommando v0.4.0:
-added the possibiliy to customize the size of the buttons and the menu
-fixed buttons randomly changing their positions
-added controlls to change the order of the buttons
-moved the configfile to ~/.kde/share/apps/kommando, where it really belongs to
-added the ability to take over items from kmenu (thx to Sergio Cambra for the patch!)
-some enhancements throughout the whole code
-included a patch that lets Kommando run as Kded module (patch by Sergio Cambra)


15.11.2005 Kommando v0.3.0:
-improved the configuration dialog
-added the ability to adjust the opacity and the tint color of the background
-added keyboard and mousewheel navigation (read README)
-added new entries in the config file (there should be no compatibility problems though)
-added the dcop interface many people were hoping for
-made the Config class a singleton

30.09.2005 Kommando v0.2.0:
-major visual enhancements (needs testing on slower computers)
-configuration dialog added (click at tray icon)
-ability to remap the global shortcut added
-code restructuring

26.09.2005 v0.1.2
- fixed a really stupid configfile bug, thx to kdt for pointing it out

26.09.2005 v0.1.1
- minor bugfixes

26.09.2005 v0.1.0:
- initial release

C

TheDocter

15 years ago

Thanks for the package, if you could give me the link, I will post it.
And no, there is no convenient way to change the icon size, you could of course hack the source code.

Report

Kwellmeister

15 years ago


You can find my debian package at:

http://harrys-home.gmxhome.de/kommando_0.2.0-1_i386.deb

debian unstable (Kanotix)
kde 3.4.2 [kdelibs4c2 (>= 4:3.4.2-1)]
qt 3.3.5
gcc 4.02

Regards !

Report

ryampolsky

15 years ago

When I first saw the screenshot, I thought this thing would pop up when you pressed Alt-Tab to show you the list of windows you were tabbing through. Nice, since Alt-tab works in a circular fashion anyway.

Also, I thought that the 'minus' button in the middle might launch xkill.

Don't know that this adds up to anything, but if your visual paradigm suggests this behavior, maybe it would make sense to use it for that...

Report

sango

15 years ago

Actualy, i have a great problem in using this great app. When the menu is active, i can't select any icon. Every time i move the cursor beneath the great X in the middle, the menu disapear.

Second problem: i use xbindkeys (imwheel have problems with >9 buttons), so i send a keystroke with xvkbd and -text. But when i use this, to raise the menu it does'nt apear by the mouise-cursor. Instead, it is in the upper left corner (there is also my traybar, possible connection?).

BTW For a longer time i use the program apwal, which ist a icon-menu like kommando, but in gtk. It have some bugs and is really slow, so i hope i can someday skip to this program, which is really fast :)

Report

C

TheDocter

15 years ago

I might have an explanation for problem No.2 . IMHO xbindkeys does not seem able to remap mouse input like imwheel does it "only" executes shell commands if it recognizes a certain input (if i didn't, like so often, overlook something ;-) ).
You should try to invoke the menu with the default key combination. If it still doesn't show up under the mouse cursor let me know.

The first problem really makes me wonder, because there are only 3 conditions the menu should disappear:
1. You click a button.
2. The menu widget loses focus.
3. The application crashes :D
are there perhaps any X events you trigger unintentionally by moving away from the middle button, which could make the window lose focus?

Report

C

TheDocter

15 years ago

again overlooked something -.-
didn't see you use xvkbd... i'll take a look at it

Report

sango

15 years ago

Yes, i call xvkbd. But why is this relevant? I thougt the menu should raise at the cursor-position, not the 'caller'-position ;)

> 2. The menu widget loses focus.

Ok, i have tested again, it could be this, why ever. When the Menu is above the Desktop, it holds, when it is above a program, it disapear. I have configured kde that the focus should follow, so the focus followed to the program when the cursor moved out of the icon-range.

Like i say, i use apwal, and apwal hasn't such a behavior.

Report

jones

15 years ago

Ever seen the Maya Hotbox? It would be a good aditional inspiration...

Report

alex77s

15 years ago

Look this karamba theme http://www.kde-look.org/content/show.php?content=19297
it's a good job. See if you are intrested to implement the use of the mouse wheel to browse the applications, or the transparent background.

Another estethicism can be the parabolic icon enlargment (like kxdocker).

Thanks for this nice tool.
I hope to see it in the next KDE version.

Report

C

TheDocter

15 years ago

Wow, really a nice theme! I'll keep this mousewheel rotation thing in mind, could really be useful!
But i don't think i will be able to implement the transparent background, or better: i should not implement it the way it is in Superkaramba. All they do is in fact taking a screenshot of the position the window is placed on and set this screenshot as background of the window. This looks fine as long as you stay above the background image itself but as soon as icons or other windows get covered it looks as if some western hero shot them, you can see right through... :(
If there is anybody around who can tell me how to do really transparent backgrounds you can bet that i will use them ;-)

Report

polrus

15 years ago

superb program - should be included in kde

1 suggestion : default .kommandorc should be created when none is found

Report

C

TheDocter

15 years ago

Thank you!
I am already working on this :)

Report

kybu

15 years ago

Please, correct to this line:
SysTray->setPixmap(SysTray->loadIcon("kommando"));

Anyway, good idea.

Report

C

TheDocter

15 years ago

Thanks, corrected it. But as it really is not critical the change will ship with the next release. Anyway it seems as if I should really concentrate more on the details...

Report

zuxez

15 years ago

does this improvement enable just an global menu (same entries all the time) or does it use selection possibilities provided by each application, so that one could hide the menu bar for example (like the desktop bar on top of the screen does)

Report

C

TheDocter

15 years ago

At the moment it is just a global menu, but I have considered providing better integration into KDE. But as a context sensitive menu is much trickier to create than a static one, this has to wait until a later state of development (if i am good enough to program it :-D )

Report

zuxez

15 years ago

yeah, that would be somewhat tricky to code, but imho it would be a very nice feature =)

Report

multescugeorge

15 years ago

I compiled it on Fedora core 4 (gcc 4.0.1; qt 3.3.4) with no problems. It runs fine too(WOW!!!, nice).
Has an ugly tray icon, but i keep it hidden so it doesn't bother me. It could be nice to use it with a combination of left-right mouse click, or middle click for 3-4 seconds instead of ctrl-alt-H. I tried to get it to work with mouse gestures, but i could't make it run, oh well. I think i'll try imwheel program on middle click, but middle button is used to make quick copy-paste in konsole and such, so i have mixed feelings about it.
Great program!

Report

HessiJames

15 years ago

Hello,
I compiled an rpm on suse 9.3 without problems. But when I start Kommando from the console I get the error "Fehler!".

Report

SWaN

15 years ago

I get this error too on Slackware 10.2

Report

C

TheDocter

15 years ago

"Fehler!" means that the config file is not in place or could not be opened. Make sure that you've copied .kommandorc provided with the source code into your home directory. Or, if its already there, ensure that you have the rights needed to read it.
I know that copying or creating the configfile manually is not very convenient and im working on a configuration dialog for the next release.

Report

chankette

15 years ago

I have this error too on Gentoo amd64 and kde 3.5 beta1.

Report

kdt

15 years ago

I've hit the following compilation error: [SNIP] if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde3.5-beta1/include -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -march=athlon -mtune=athlon -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT menu.o -MD -MP -MF ".deps/menu.Tpo" -c -o menu.o menu.cpp; \ then mv -f ".deps/menu.Tpo" ".deps/menu.Po"; else rm -f ".deps/menu.Tpo"; exit 1; fi menu.cpp: In member function ‘virtual void Menu::arrangeButtons()’: menu.cpp:60: error: ‘sin’ was not declared in this scope menu.cpp:60: error: ‘cos’ was not declared in this scope [SNIP] #include math.h helped. The second bug is in main.cpp. There should be "mainWin = new Kommando(".kommandorc");" instead of "mainWin = new Kommando();" ? ;)

Report

C

TheDocter

15 years ago

Thanks for reporting the compilation error, I am really puzzeld how this could compile cleanly on my box...

However in my opinion there is no real need to construct mainWin with kommandoui.rc, (or assign it in the constructor itself) as the widget is only used as a canvas for drawing onto. All gui components are created on the fly.

Report

C

TheDocter

15 years ago

ouch! that hurts!
you're right! should have slept a little longer maybe... i will provide a fix soon

Report

14 years ago

21.08.2007 Kommando v0.5.2:
-clicking with the middle mousebutton excutes commands

16.11.2006 Kommando v0.5.1:
-added a "add menu from kmenu" feature (again a patch by Sergio)

14.11.2006 Kommando v0.5.0:
-added context sensitive menus
-running as kded module (huge thanks to Sergio Cambra)
-configuration via a KControl module (again thanks to Sergio)
-fixed button drawing code and eliminated flickering
-code cleanups (myself and Sergio Cambra)
-major refactoring of the menu code
-fixed some of my own most hated bugs

20.01.2006 Kommando v0.4.1:
IF v0.4.0 WORKS THERE IS NO NEED TO UPGRADE!
-fixed a compile bug
-corrected the application type to KUniqueApplication to make dcop work "properly" again
-automatically move config file to the new location (initial patch provided by Sune Vuorela)

17.01.2006 Kommando v0.4.0:
-added the possibiliy to customize the size of the buttons and the menu
-fixed buttons randomly changing their positions
-added controlls to change the order of the buttons
-moved the configfile to ~/.kde/share/apps/kommando, where it really belongs to
-added the ability to take over items from kmenu (thx to Sergio Cambra for the patch!)
-some enhancements throughout the whole code
-included a patch that lets Kommando run as Kded module (patch by Sergio Cambra)


15.11.2005 Kommando v0.3.0:
-improved the configuration dialog
-added the ability to adjust the opacity and the tint color of the background
-added keyboard and mousewheel navigation (read README)
-added new entries in the config file (there should be no compatibility problems though)
-added the dcop interface many people were hoping for
-made the Config class a singleton

30.09.2005 Kommando v0.2.0:
-major visual enhancements (needs testing on slower computers)
-configuration dialog added (click at tray icon)
-ability to remap the global shortcut added
-code restructuring

26.09.2005 v0.1.2
- fixed a really stupid configfile bug, thx to kdt for pointing it out

26.09.2005 v0.1.1
- minor bugfixes

26.09.2005 v0.1.0:
- initial release

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.5.2
updated Nov 14 2006
added Sep 25 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0