You are not logged in.

#1 2007-12-15 15:43:36

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Allowing the caps lock working in the number row?

nt

Offline

#2 2007-12-20 20:18:33

benmorgan
Member
From: Germany
Registered: 2006-07-28
Posts: 67

Re: Allowing the caps lock working in the number row?

It might help to give some more information...

Offline

#3 2007-12-20 21:15:19

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: Allowing the caps lock working in the number row?

I think he means a caps lock that works on numbers. I'm not sure if that's possible.
Maybe bind a key to do a lot of xmodmaps binding the number keycode to '~!@#etc' keysymnames. But that's a lot of work.

Offline

#4 2007-12-20 21:59:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Allowing the caps lock working in the number row?

From the bottom of http://www.vim.org/tips/tip.php?tip_id=1323 to do it generally in Linux.

On Linux you can remap 0...9 keys adding the following lines to your ~/.xmodmaprc file:

keysym 1 = exclam 1
keysym 2 = at 2
keysym 3 = numbersign 3
keysym 4 = dollar 4
keysym 5 = percent 5
keysym 6 = asciicircum 6
keysym 7 = ampersand 7
keysym 8 = asterisk 8
keysym 9 = parenleft 9
keysym 0 = parenright 0

I also mapped "[" to "{" and "]" to "}":

keysym bracketright = braceright bracketright

keysym bracketleft = braceleft bracketleft

There's great advice on how to do it in Vim only here also.

Last edited by skottish (2007-12-20 22:05:23)

Offline

#5 2007-12-27 14:27:45

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Allowing the caps lock working in the number row?

In the programmer dvorak drivere there is a cryptic note:

// to use the numeric row in Caps state, you will have to enable the
// layout with the option caps:shift which makes use of the shift 
// state instead of the internal capitalization. see the thread called:
// "[I18n]Problem with Caps-lock /Shift combo's in xkb - locale tr"
// between Deniz Kanca and Ivan Pascal which explains this.

I could not find the Kanca & Pascal thead. But do anyone have idea of what option caps:shift may mean?

Offline

#6 2007-12-27 15:26:47

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: Allowing the caps lock working in the number row?

I'm pretty sure that the "caps:shift" option is accessible via an entry xorg.conf, as per this site: fwconsult.com/acer-install/xorg.lst

How to access this I have no idea however. Give me a bit of time to look a bit deeper and I'll come back


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#7 2007-12-27 15:53:28

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: Allowing the caps lock working in the number row?

Try adding this to your keyboard section of xorg.conf:

    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "us"
    Option "XkbOptions" "caps:shift"

Not sure if that 'caps:shift' thing is valid, but you could go through xorgconfig to make sure.


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#8 2007-12-27 17:01:21

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Allowing the caps lock working in the number row?

according to
/usr/share/X11/xkb/types/caps
it should be correct, yet (the empty -option is for resetting the old options)
$ setxkbmap -v 10 -layout us -rules xorg -model pc104 -option -option 'caps:shift'
has no effect...
sad

Offline

Board footer

Powered by FluxBB