LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2003, 05:02 PM   #16
Neuronet
Member
 
Registered: Feb 2003
Location: The Netherlands
Distribution: Debian 3.0
Posts: 43

Original Poster
Rep: Reputation: 15

My left MS button *will* map to something but only when used in conjunction with another key (e.g. MS + A).

My right MS button doesn't even register a keystroke.

That's what I meant.
 
Old 04-21-2003, 05:16 PM   #17
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
Ok, first type xev in a console
now press the key and write down the key- code that comes up,
there is a line simular to:

state 0x10, keycode 120 ( keysym etc. etc.

Ok suppose the keycode is 120

now make a file in KDE autostart ( or other window manager ) called "mmkeys "

#!/bin/bash
xmodmap -e 'keycode120=F13'
(more keys if you want, F14 F15 etc.)
#end script

Logout, login to restart KDE

Now you can assign the key to an action in kmenuedit, I know the "start-button" does not show there but if you manage to find the command you can fill in the path there.

Bruno

Last edited by onurb; 04-21-2003 at 05:20 PM.
 
Old 04-23-2003, 07:19 AM   #18
Neuronet
Member
 
Registered: Feb 2003
Location: The Netherlands
Distribution: Debian 3.0
Posts: 43

Original Poster
Rep: Reputation: 15
The problem is that I wanted the start button to map directly to the K-menu. I mean, with the config tool I can bind it to a key COMBO - but not *just* the MS key.

Second point - the right MS key doesn't register as a keystroke when I press it (in the k menu tool). That doesn't bother me as I don't use it - but somebody else mentioned that their system didn't register depressions of the right key and I thought I'd mention mine didn't either.
 
Old 04-23-2003, 02:23 PM   #19
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
Quote:
Originally posted by onurb
now make a file in KDE autostart ( or other window manager ) called "mmkeys "

#!/bin/bash
xmodmap -e 'keycode120=F13'
(more keys if you want, F14 F15 etc.)
#end script
Huh? Where do I put this file, I mean, in which directory? I don't know anything about auto-executed scripts...
 
Old 04-23-2003, 04:19 PM   #20
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
It works great after I enter

xmodmap -e 'keycode120=F13'

in bash, even as a single key, but I still can't figure out where to put this to be automated. A search for *utostart* gave me these directories:

/etc/skel/.kde/Autostart
/home/my_user_name/.kde/Autostart
/root/.kde/Autostart
/usr/share/autostart

and none of them seems to be the right one
 
Old 04-23-2003, 04:40 PM   #21
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Save that bash script text into a file in your /home/my_user_name/.kde/Autostart
 
Old 04-23-2003, 05:52 PM   #22
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
I already tried that, then I put the file also in those other directories I listed in previous post, still no success.

Oh, I didn't mention before, I think it has to be with a space between "keycode" and "120" or whatever number (for my Cherry G83 that's 115 for left win key and 116 for right win key):

xmodmap -e 'keycode 120=F13'
and not
xmodmap -e 'keycode120=F13'

Anyway, in /home/my_user_name/.kde/Autostart I tried also without space.

Well, at least this win key thing is not very crucial ...
 
Old 04-27-2003, 07:47 AM   #23
Neuronet
Member
 
Registered: Feb 2003
Location: The Netherlands
Distribution: Debian 3.0
Posts: 43

Original Poster
Rep: Reputation: 15
I can't even get that far :-)
I did the xev test and got the switch-number 115.
I enter ...

xmodmap -e 'keycode 115=F13'

and get the error message...

xmodmap: unknown command on line commandline:0
 
Old 04-27-2003, 11:55 AM   #24
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
Maybe you just don't have it in your path. Search for xmodmap and then enter the full path, like

/urs/local/bin/xmodmap -e 'keycode 115=F13'
 
Old 04-27-2003, 12:11 PM   #25
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
You should put a line like
keycode 120=F13
in a file called ".Xmodmap" in your home direcotry.
Then restart X and the keymap will be available to you.

For example, the .Xmodmap for my logitech wireless

Code:
keycode 236 = F13
!
keycode 145 = F14
!Volume Dowm
keycode 174 = F15
!Volume Up
keycode 176 = F16
!
keycode 146 = F17
!
keycode 147 = F18
!
keycode 229 = F19
!
keycode 148 = F20
!
keycode 230 = F21
!
keycode 178 = F22
!
keycode 223 = F23
!Back Button
keycode 234 = F24
!Sleep/User Button
keycode 233 = F25
!
keycode 237 = F26
!Mute
keycode 160 = F27
!Seek Fwd
keycode 153 = F28
!Seek Back
keycode 144 = F29
!Play/Pause
keycode 162 = F30
!Stop
keycode 164 = F31
!Scroller Push
!keycode 150 =
HTH

Ian
 
Old 04-27-2003, 01:03 PM   #26
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
Thanks, I put this:
keycode 115 = F13
!
keycode 116 = F14
!
keycode 117 = F15
!


and it works!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying xfce: where's the start button? walterbyrd Linux - Software 3 07-08-2005 03:02 PM
Cannot remove item from KDE Menu (aka start button) MattG1981 Linux - Newbie 3 06-13-2004 02:20 PM
keyboard shortcut for kde "start" button Smerk Linux - Newbie 2 12-21-2003 08:33 PM
Make the windows-button to open KDE start-menu objorkum Linux - Software 5 12-17-2003 12:07 AM
start button and taskbar j_developer Linux - Newbie 1 09-09-2002 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration