LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   affordable non-staggered keyboard (https://www.linuxquestions.org/questions/general-10/affordable-non-staggered-keyboard-793510/)

MTK358 03-09-2010 07:29 PM

I mãþþeđ m¥ Right Ãlt kéÿ tò Çømpø§ə¡

I did this by running xev to find out the keycode of the Right Alt key.

Then I added this to a file called .Xmomap in my home dir.

Code:

keycode 108 = Multi_key
(Replace 108 with the keycode of the key you want to be the Compose key).

Then add this line to your .xinitrc:

Code:

xmodmap ~/.Xmodmap
And it will work once you restart X.

Or for it to take effect now, just type the command xmodmap ~/.Xmodmap in your terminal.

MTK358 03-09-2010 07:49 PM

This is so cool:

10 * 8 / 4 = 40 becomes 10 × 8 ÷ 2 = 40

4.7uF becomes 4.7µF

3 1/2" becomes 3½"

"This is a quote" becomes “This is a quote”

2^8 becomes 2⁸

H2O becomes H₂O

smeezekitty 03-09-2010 08:09 PM

Quote:

4.7uF becomes 4.7µF
Thats quite small for a capacitor ;)

catkin 03-09-2010 09:12 PM

Quote:

Originally Posted by MTK358 (Post 3892251)
Or for it to take effect now, just type the command xmodmap ~/.Xmodmap in your terminal.

Thanks for the info but it's not working for me. Used the -verbose option of xmodmap and all looked well. Used xmodmap without any arguments to print the map and all looked well. Tried entering characters in Mousepad (Xfce text editor), OpenOffice 3.1.1 (Compose+* did produce a vertical grey bar) and Firefox 3.6. :(

I have $LANG set to en_GB.UTF-8. Could that be the problem? Is anybody else using Compose with UTF-* OK?

MTK358 03-10-2010 05:20 AM

Quote:

Originally Posted by catkin (Post 3892330)
Thanks for the info but it's not working for me. Used the -verbose option of xmodmap and all looked well. Used xmodmap without any arguments to print the map and all looked well. Tried entering characters in Mousepad (Xfce text editor), OpenOffice 3.1.1 (Compose+* did produce a vertical grey bar) and Firefox 3.6. :(

I have $LANG set to en_GB.UTF-8. Could that be the problem? Is anybody else using Compose with UTF-* OK?

Compose+* does not print a vertical gray bar for me either.

Try (Note that you should not do this like a key combination, just press compose, press one letter, and press the senond letter):

Compose x x
×

Compose m u
µ

Compose : -
÷

Compose s o
§

EDIT: And did you use xev to find out the keycode?

@smeezekitty

From my experience 4.7µF is a pretty average capacitor. 0.1µF ones are used very often to suppress noise from microcontrollers. They even make 1pF capacitors!

catkin 03-10-2010 08:06 AM

Quote:

Originally Posted by MTK358 (Post 3892699)
Note that you should not do this like a key combination, just press compose, press one letter, and press the senond letter

:doh: Operator error! I was using it like a shift key :redface:

DavidMcCann 03-10-2010 11:16 AM

You only need to mess about with xmodmap if you're not using a mainstream desktop like Gnome or KDE. Otherwise, just use the keyboard configuration tool: Gnome offers seven different places for it.

meingbg 03-12-2010 03:14 AM

keyboa
 
Quote:

Originally Posted by MTK358 (Post 3891869)
What, you've made your own keyboard layout?

Yes, it's not very hard. I have 500+ key shortcuts on my layout, but for this the usual xmodmap is not enough, so I made my own software to develop the layout: http://github.com/meingbg/keyboa

MTK358 03-12-2010 06:45 AM

How do I get the program?

And does it create an Xmodmap, or does it have to run all the time?

Anyway, this part got me very excited — “This enables features such as letting any key act as a modifier and a symbol at the same time (e.g. pressing a gives an
a, but pressing b while holding down a gives Ctrl-b)”. That's what I wanted a long time ago!

catkin 03-12-2010 07:00 AM

Quote:

Originally Posted by meingbg (Post 3895466)
Yes, it's not very hard. I have 500+ key shortcuts on my layout ...

Remembering 500 shortcuts would be challenging!

MrCode 03-12-2010 12:57 PM

Quote:

Remembering 500 shortcuts would be challenging!
Probably keeps them all in a list on a sheet of paper or something...

meingbg 03-12-2010 03:26 PM

Quote:

Originally Posted by MTK358 (Post 3895631)
How do I get the program?

And does it create an Xmodmap, or does it have to run all the time?

Anyway, this part got me very excited — “This enables features such as letting any key act as a modifier and a symbol at the same time (e.g. pressing a gives an
a, but pressing b while holding down a gives Ctrl-b)”. That's what I wanted a long time ago!


You just download it from the site, instructions for installation is included.

It does not create an Xmodmap directly - you see, Xmodmap doesn't have support for a key being a modifier and a symbol at the same time. For now, it runs as a vnc proxy (native X11 support is possible and on the todo list). But as for Xmodmap - yes, the Xvnc server will automatically add any keys you use that aren't in your keymap from the beginning, you don't have to think about it.

MTK358 03-12-2010 03:36 PM

WTF is vnc?

meingbg 03-12-2010 03:36 PM

Quote:

Originally Posted by MrCode (Post 3896028)
Probably keeps them all in a list on a sheet of paper or something...

I keep them right in my head, actually. But I didn't just randomly memorize them. Rather, over the months, I've added new ones as I needed them (most people have no problem remembering things they actually use). For example, holding down c gives me a numpad on my right hand, holding down comma gives me F1-F12 on my left, and I have key shortcuts to switch to greek, cyrillic, qwerty and dvorak layouts. Only these examples are way over 100 mappings. But I've also gotten noticably better at remembering mappings and layouts.

meingbg 03-12-2010 03:42 PM

Quote:

Originally Posted by MTK358 (Post 3896162)
WTF is vnc?

"Virtual Network Computing". It's a way to connect to your desktop over the network from another, or the same, computer.

To "start" a desktop, do something like this:
sudo apt-get install vnc4server
vncserver :1 -geometry 1600x1200 #or whatever screen resolution you have.

now try to connect with
vncviewer :1 --fullscreen

If it works, you're ready to get keyboa going.


All times are GMT -5. The time now is 08:06 AM.