LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Keyboard numeric keypad (https://www.linuxquestions.org/questions/linux-desktop-74/keyboard-numeric-keypad-880158/)

clpc 05-11-2011 02:06 PM

Keyboard numeric keypad
 
In Gnome in the keyboard layout there is a section where you could click a checkbox that said something like...
"Make <Shift+Home> and <Shit+End> work as in MS Windows"

Basically it makes <Shift+Home> and <Shift+End> highlight text.
This works fine on the dedicated End and Home buttons, I am referring only to the Home and End buttons on the numeric keypad.

I am now using Xfce4 and this feature does not seem to be available.

Can anyone tell me how I can set this either on the CLI or desktop environment. I am well used to hacking away at linux but I just cannot find anything to give me an idea of what needs to be done.

David the H. 05-12-2011 01:01 AM

The gui settings are basically just a front-end for setxkbmap. kde's dialog is nice because it shows you exactly what command is generated from your choices. The -option setting that does what you want is numpad:microsoft.

I can't for the life of me parse what you're talking about with the numberpad though. Do you mean that this setting only works with the numberpad, doesn't work with it, you want it to only work with it, you don't want it to only work with it, or what?

In X, the numberpad cursor keys can be used by first hitting shift+numlock. See this page for details: http://www.tuxfiles.org/linuxhelp/movecursor.html

Other than enabling/disabling them as above, that I don't think there's any way to set the numberpad functions separately.

clpc 05-12-2011 04:28 AM

Problem SOLVED
 
Thankyou very much, that did exactly what I was after.

I think my description of the problem was a bit confusing.
I didn't want to change/alter any other keys, I just wanted the change to only affect the numeric keypad.

Thanks again, old habits die hard, I have been using Linux for 6 years now and I just cannot easily change habits from when I used Windows for may years.

For anyone else reading this the final command is as follows.

sudo setxkbmap -option numpad:microsoft

MTK358 05-12-2011 11:27 AM

Mark the thread as solved.

Also, I don't think you need sudo. Did you try without it?

David the H. 05-12-2011 05:33 PM

MTK358 is right. Like most X-affecting programs, setxkbmp should be run by the user who owns the X-session in question. This will generally be the user you logged in as.

Also, after looking at it a bit closer, it's a "numpad" option, so I guess it only affects that in any case. :)

clpc 05-13-2011 03:13 AM

Solved
 
Yes I did realize that the sudo is not needed.
I have placed it in my ~/.bashrc file.

SOLVED

Thanks again

MTK358 05-13-2011 08:09 AM

Again, mark the thread as solved.

clpc 05-14-2011 03:14 AM

Solved
 
according to one of your moderators I have marked it as solved.
See here http://www.linuxquestions.org/questi...solved-727779/

The link above would be a clickable link but the LQ page about tags isn't loading and I have more important things to do.

But either way do you not think your posts are just banging out a command and nothing else. "Mark it as solved"

I wonder how many times it would take me to carry on just marking a post as solved the way I have before your proverbial penny drops and you recognise that perhaps this member doesn't know how to mark the post as solved in such a way to satisfy LQ.

Much better would be to ask me to mark the post as solved by supplying me with a link that explains how I do that.

So instead of getting this post solved we have now changed topics and are into a discussion about marking threads as solved, a discussion that I don't really have the time for.

David the H. 05-14-2011 01:37 PM

There's a big highlighted link at the top of every thread you start that will mark it for you. I also mention another way to do it in my signature.

But in any case we do assume that you can figure some things out on your own.

If you can't, then why not simply ask us politely, instead of complaining about it?


All times are GMT -5. The time now is 05:52 AM.