LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 03-09-2010, 07:29 PM   #61
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723

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.
 
Old 03-09-2010, 07:49 PM   #62
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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

Last edited by MTK358; 03-09-2010 at 07:50 PM.
 
Old 03-09-2010, 08:09 PM   #63
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
4.7uF becomes 4.7µF
Thats quite small for a capacitor
 
Old 03-09-2010, 09:12 PM   #64
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by MTK358 View Post
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?
 
Old 03-10-2010, 05:20 AM   #65
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by catkin View Post
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!

Last edited by MTK358; 03-10-2010 at 05:27 AM.
 
Old 03-10-2010, 08:06 AM   #66
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by MTK358 View Post
Note that you should not do this like a key combination, just press compose, press one letter, and press the senond letter
Operator error! I was using it like a shift key
 
Old 03-10-2010, 11:16 AM   #67
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,131

Rep: Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302
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.
 
Old 03-12-2010, 03:14 AM   #68
meingbg
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 1
keyboa

Quote:
Originally Posted by MTK358 View Post
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
 
Old 03-12-2010, 06:45 AM   #69
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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!
 
Old 03-12-2010, 07:00 AM   #70
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by meingbg View Post
Yes, it's not very hard. I have 500+ key shortcuts on my layout ...
Remembering 500 shortcuts would be challenging!
 
Old 03-12-2010, 12:57 PM   #71
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Remembering 500 shortcuts would be challenging!
Probably keeps them all in a list on a sheet of paper or something...
 
Old 03-12-2010, 03:26 PM   #72
meingbg
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 1
Quote:
Originally Posted by MTK358 View Post
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.
 
Old 03-12-2010, 03:36 PM   #73
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
WTF is vnc?
 
Old 03-12-2010, 03:36 PM   #74
meingbg
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 1
Quote:
Originally Posted by MrCode View Post
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.
 
Old 03-12-2010, 03:42 PM   #75
meingbg
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 1
Quote:
Originally Posted by MTK358 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync and cp -al for staggered backups babyphil Linux - Software 2 06-14-2005 12:24 AM
Affordable Laptop recommendations TuxFreak Linux - Hardware 2 01-17-2005 01:14 PM
Any linux certification for UK people( affordable) cyto Linux - Certification 4 11-04-2004 07:14 PM
Affordable Partitioning Tool needed! cd_han Linux - Newbie 3 07-22-2004 02:36 PM
Free/Affordable Dial-up ISP mgunkel58 General 2 07-09-2004 05:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration