You are not logged in.
nt
Offline
It might help to give some more information...
Offline
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
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
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
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
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
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...
Offline