LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2009, 07:08 PM   #1
paul_l
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Rep: Reputation: 0
Bind/map Character to alt+[some key]?


In programming and various terminal programs (Screen, Vim) the [, ], { and } tends to be used a lot. I'm using a Norwegian keyboard where these are placed such that I have to stretch my fingers a bit too long for whats comfortable. To make it easier I though I'd try to make alt+[some key] be one of these characters. Is there a way that I can bind, say alt+æ (Norwegian letter) to '{' system wide?

Btw, is such thing called binding, mapping or something else? I'm getting a bit confused by the terms...
 
Old 12-23-2009, 07:31 PM   #2
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
I don't remember the details, but I'm assuming you're in a GUI. This should help: http://www.xfree86.org/4.0/xmodmap.1.html
 
Old 12-23-2009, 08:05 PM   #3
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
In vim you can use :imap <input symbol> <desired symbol> command to make vim replace one symbol to another in input mode.
For being able to use handy keystrokes through all system you can use third plane of keymap. It's like a second plane, which you can use with Shift pressed, but usually it's empty. To use it modify your keymap file in /usr/share/X11/xkb/symbols/no. Add bracketleft, bracketright, braceleft, braceright as third symbols on desired keys. Than add a switch for this plane (lv3:alt_switch) to the XkbOptions string of your xorg.conf file.
 
  


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
ALT+B, ALT+F key combinations in xterm don't work nIMBVS cAos 5 05-06-2020 10:23 AM
Ubuntu hosted by Microsoft Virtual PC - ALT-GR key seized as escape character tinfalco Linux - Newbie 5 03-09-2008 05:19 PM
can't map Alt Gr key vito_huang Linux - General 1 04-23-2007 03:11 PM
How do I get Right-Alt key to be just Alt and not generate special characters? (KDE) KWTm Linux - General 2 06-25-2005 10:26 PM
How do I map a key sequence to a specific character? QtCoder Linux - General 0 11-28-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:12 PM.

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