Next Previous Contents

2. Installation

2.1 How to obtain KHotKeys

You may try http://khotkeys.seli.fd.cz or http://dforce.sh.cvut.cz/~seli/khotkeys.html.

2.2 Requirements

KDE

2.3 Compilation and installation

In order to compile and install KHotKeys on your system, type the following in the base directory of the KHotKeys distribution:

% ./configure
% make
% make install

Since KHotKeys uses

autoconf
you should have not trouble compiling it. Should you run into problems please report them to the the author at Lubos Lunak

You can also try the KHotKeys homepage http://dforce.sh.cvut.cz/~seli/khotkeys.html where you can find a RPM for RedHat 6.0 and a source rpm.

2.4 How to run it

Since KHotKeys is not an usual application but a kwmmodule, it doesn't use session management, so it needs to be run manually everytime you run KDE.

You have these choices :

Everytime you run KDE press ALT+F2 and type khotkeys

... no, I'm just kidding, this is stupid.

Start it from your startkde script

You usually need to be the root user to do this. Simply edit your $KDEDIR/bin/startkde and put "khotkeys &" ( without the quotes ) somewhere after "kcontrol -init" and before "exec kwm" ( or similar ). The following lines are the startkde script from KDE 1.1.1 modified to run KHotKeys ( only the line with starting khotkeys was added ):

#!/bin/sh
#
#  DEFAULT KDE STARTUP SCRIPT ( KDE-1.1 )
#

# initialize the configuration first.

kcontrol -init

# Start the common desktop tools in the background.
# The sleeps reduce disk usage during startup.
# kaudioserver will put itself in the background automagically

sleep 1 ; kaudioserver
(sleep 1 && exec kwmsound) &

# Add -ncols 96 after kfm if using a 8-bit display
(sleep 1 && exec kfm) &

(sleep 1 && exec krootwm) &
(sleep 1 && exec kpanel) &
(sleep 3 && exec kbgndwm) &

(sleep 1 && exec khotkeys ) &

# finally, give the session control to the window manager

sleep 2 ; exec kwm

The postinstall script in the rpm packages that modifies starkde script has been removed.

Put it in your Autostart folder

If you can't put it in the startkde script or you don't want to do so, put it in your Autostart folder. Open kfm in your $KDEDIR/bin ( usually /opt/kde/bin ) by typing this in the mini command line ( after pressing ALT+F2 ). Open your Autostart folder by clicking on it ( or open it the same way as $KDEDIR/bin if you don't have your Autostart folder located on the desktop - I for example don't ). Now, in the first ( $KDEDIR/bin ) window find file "khotkeys" and drag it from this window on the second one ( Autostart folder ). A menu asking whether to copy, move or make a link will appear, select Link. Ok, you're done, now either restart KDE or run it manually ( ALT+F2 and type khotkeys ).

If you decide to turn it off, simply open the Autostart folder again and remove the "khotkeys".


Next Previous Contents