Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.