You are not logged in.

1

Tuesday, July 20th 2004, 8:41pm

Keyboard Shortcut Problems

I have recently been mapping the multimedia keys on my keyboard using xmodmap. The keys are working well but I have run into 2 problems in the process which I would like fixed. The first one is probably a simple fix, it is that I want to be able to run the command:

xmodmap ~/.Xmodmap

every time I log into kde, I currently have the command presideing in my .bashrc file, this however means I have to open konsole before the keys begin to work, it also means that when I log into a terminal I get an error. Any help as to where I can put the command to auto run on KDE login would be much help.

The other problem is that when using the Keyboard Shortcuts configuration utility in the K Control Center, I mapped Ctrl+F to open the KDE Find utility globally, I quickly however found out that I could no longer open a file in Emacs because Ctrl+X followed Ctrl+F would bring up the find utility because of the setting, I then changed it to be F17, the key I have the button with the Little magnifying glass on my multimedia section of my keyboard mapped too. I saved and restarted the computer to make sure the setting took effect, however Ctrl+F still opened the util, I then open Control Center to check if I had saved it and I had. I then ran the command:

cat ~/.kde/share/config/kdeglobals |grep Find

which outputted:

Find=F17

So I have no idea why the problem presists. Any help would be much thankfull.

Thanks in Advance,
Spore

2

Wednesday, July 21st 2004, 7:13am

All applications in .kde/Autostart are executed upon login. create a .desktop file with command you want to execute and put it in that directory. I am not sure about the shortcut problem as i have never faced it before. Shortcuts usually take effect immediately, you need not even log out of kde.

3

Wednesday, July 21st 2004, 6:09pm

I wrote the file ~/.kde/Autostart/.dekstop After stopping kdm and then restarting it and logging back in the commands did ot take effect. If I run from Konsole the command ~/.kde/Autostart/.desktop the command works correctly. Here are the contents of the file:

------------------------------

#!/bin/sh
#Stuff to run at login

#Map keys to keyboard
xmodmap ~/.Xmodmap

#EOF
--------------------------------

thanks again,
Spore

seb

Professional

Posts: 622

Location: Sydney

Occupation: Student

  • Send private message

4

Friday, July 23rd 2004, 4:32am

firstly, .desktop is the extension - it needs a filename :D. Secondly, it would also work if you used it as a shell script.

do this:
[code:1]
cd ~/.kde/share/Autostart
mv "filename" keymap.sh
chmod +x keymap.sh
[/code:1]

And that should get your script running everytime you log in.

5

Friday, July 23rd 2004, 8:09am

Thanks seb, keymap.sh works great, but I am still having the huge problem with Ctril+F bringing up the search menu in all programs and I have no idea how to fix it. Any help with that would be much much appreciated.

thanks,
Spore

6

Friday, July 23rd 2004, 8:18am

Just looking through some other settings I found out that the Ctrl+F function was set up under the KHotKeys settings, so I fixed the problem with that too, I just don't know why it was set up there in the first place. Thanks again for all of the help in setting up my keyboard guys.

-Spore