Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.misc > #2158 > unrolled thread
| Started by | RS Wood <rsw@therandymon.com> |
|---|---|
| First post | 2014-03-31 12:30 +0000 |
| Last post | 2014-04-03 11:37 +0200 |
| Articles | 9 — 8 participants |
Back to article view | Back to comp.misc
Customizing your keyboard experience RS Wood <rsw@therandymon.com> - 2014-03-31 12:30 +0000
Re: Customizing your keyboard experience Huge <Huge@nowhere.much.invalid> - 2014-03-31 13:27 +0000
Re: Customizing your keyboard experience Tim Streater <timstreater@greenbee.net> - 2014-03-31 15:07 +0000
Re: Customizing your keyboard experience Marko Rauhamaa <marko@pacujo.net> - 2014-03-31 17:26 +0300
Re: Customizing your keyboard experience Huge <Huge@nowhere.much.invalid> - 2014-03-31 14:37 +0000
Re: Customizing your keyboard experience RS Wood <rsw@therandymon.com> - 2014-03-31 14:29 +0000
Re: Customizing your keyboard experience Tim Watts <tw_usenet@dionic.net> - 2014-03-31 15:35 +0100
Re: Customizing your keyboard experience Randy Westlund <Vorzakir@invalid.invalid> - 2014-04-01 21:14 +0000
Re: Customizing your keyboard experience Dario Niedermann <dnied@tiscali.it> - 2014-04-03 11:37 +0200
| From | RS Wood <rsw@therandymon.com> |
|---|---|
| Date | 2014-03-31 12:30 +0000 |
| Subject | Customizing your keyboard experience |
| Message-ID | <lhbn5s$4d5$1@solani.org> |
From the «panic button top right» department: Title: Toggle keyboard keys in Linux using terminal commands Author: bob@lxer.com Date: Sun, 30 Mar 2014 13:45:15 -0400 Link: http://lxer.com/module/newswire/ext_link.php?rid=200358 It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you need to map certain keys for typical purpose (e.g swapping caps and esc when using vim). In this tutorial I will try to list different linux tools that you can use to do these tasks (you might have to install them from the repository.
[toc] | [next] | [standalone]
| From | Huge <Huge@nowhere.much.invalid> |
|---|---|
| Date | 2014-03-31 13:27 +0000 |
| Message-ID | <bpt8pnFacqrU1@mid.individual.net> |
| In reply to | #2158 |
On 2014-03-31, RS Wood <rsw@therandymon.com> wrote:
> From the «panic button top right» department:
> Title: Toggle keyboard keys in Linux using terminal commands
> Author: bob@lxer.com
> Date: Sun, 30 Mar 2014 13:45:15 -0400
> Link: http://lxer.com/module/newswire/ext_link.php?rid=200358
>
> It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you
> need to map certain keys for typical purpose (e.g swapping caps and esc when
> using vim). In this tutorial I will try to list different linux tools that
> you can use to do these tasks (you might have to install them from the
> repository.
#!/bin/bash
# Caps lock can only be set/unset with Shift/CapsLock
#
if [ -n "$DISPLAY" ]
then
xmodmap -e "clear lock"
xmodmap -e "keycode 66 = NoSymbol Caps_Lock"
xmodmap -e "add lock = Caps_Lock"
fi
--
Today is Setting Orange, the 17th day of Discord in the YOLD 3180
“Stupidity cannot be cured. Stupidity is the only universal capital crime;
the sentence is death. There is no appeal, and execution is carried out
automatically and without pity.”
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2014-03-31 15:07 +0000 |
| Message-ID | <310320141507530666%timstreater@greenbee.net> |
| In reply to | #2159 |
In article <bpt8pnFacqrU1@mid.individual.net>, Huge <Huge@nowhere.much.invalid> wrote: > On 2014-03-31, RS Wood <rsw@therandymon.com> wrote: > > From the «panic button top right» department: > > Title: Toggle keyboard keys in Linux using terminal commands > > Author: bob@lxer.com > > Date: Sun, 30 Mar 2014 13:45:15 -0400 > > Link: http://lxer.com/module/newswire/ext_link.php?rid=200358 > > > > It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you > > need to map certain keys for typical purpose (e.g swapping caps and esc when > > using vim). In this tutorial I will try to list different linux tools that > > you can use to do these tasks (you might have to install them from the > > repository. > > #!/bin/bash > > # Caps lock can only be set/unset with Shift/CapsLock > # > if [ -n "$DISPLAY" ] > then > xmodmap -e "clear lock" > xmodmap -e "keycode 66 = NoSymbol Caps_Lock" > xmodmap -e "add lock = Caps_Lock" > fi No need to fart about like this. Just go into: System Preferences -> Keyboard -> Keyboard and click the Modifier Keys button The dropdown that appears will allow you set set what the Caps Lock, CTRL, Option, and Command keys do. Simples. -- "Once you adopt the unix paradigm, the variants cease to be a problem - you bitch, of course, but that's because bitching is fun, unlike M$ OS's, where bitching is required to keep your head from exploding." - S Stremler in afc
[toc] | [prev] | [next] | [standalone]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Date | 2014-03-31 17:26 +0300 |
| Message-ID | <8738hyv403.fsf@elektro.pacujo.net> |
| In reply to | #2161 |
Tim Streater <timstreater@greenbee.net>: >> xmodmap -e "clear lock" >> xmodmap -e "keycode 66 = NoSymbol Caps_Lock" >> xmodmap -e "add lock = Caps_Lock" > > No need to fart about like this. Just go into: > > System Preferences -> Keyboard -> Keyboard I have customized my keyboard for multiple languages and moved some punctuation around. I don't know of a better way to do that than .Xmodmap. For example: AltGr + c -> ĉ AltGr + x -> š AltGr + - -> — AltGr + ! -> ¡ AltGr + a -> א Marko
[toc] | [prev] | [next] | [standalone]
| From | Huge <Huge@nowhere.much.invalid> |
|---|---|
| Date | 2014-03-31 14:37 +0000 |
| Message-ID | <bptct3FacqrU3@mid.individual.net> |
| In reply to | #2164 |
On 2014-03-31, Marko Rauhamaa <marko@pacujo.net> wrote:
> Tim Streater <timstreater@greenbee.net>:
>
>>> xmodmap -e "clear lock"
>>> xmodmap -e "keycode 66 = NoSymbol Caps_Lock"
>>> xmodmap -e "add lock = Caps_Lock"
>>
>> No need to fart about like this. Just go into:
>>
>> System Preferences -> Keyboard -> Keyboard
Except, AFICS, that doesn't do what I want.
And running an xmodmap automatically at login is hardly "farting about".
--
Today is Setting Orange, the 17th day of Discord in the YOLD 3180
“Stupidity cannot be cured. Stupidity is the only universal capital crime;
the sentence is death. There is no appeal, and execution is carried out
automatically and without pity.”
[toc] | [prev] | [next] | [standalone]
| From | RS Wood <rsw@therandymon.com> |
|---|---|
| Date | 2014-03-31 14:29 +0000 |
| Message-ID | <lhbu54$r8h$2@solani.org> |
| In reply to | #2161 |
On 2014-03-31, Tim Streater <timstreater@greenbee.net> wrote: > In article <bpt8pnFacqrU1@mid.individual.net>, Huge ><Huge@nowhere.much.invalid> wrote: > >> On 2014-03-31, RS Wood <rsw@therandymon.com> wrote: > No need to fart about like this. Just go into: > > System Preferences -> Keyboard -> Keyboard > > and click the Modifier Keys button The dropdown that appears will > allow you set set what the Caps Lock, CTRL, Option, and Command keys > do. Simples. > One man's farting around is another man's making sure it works regardless of which desktop environment he's using. On a SUSE box I even figured out how to do the CapsLock/Control switch on the console, though I forget now how I did it. It's nice customizing and little scripts like that are easily bound to keys in most environments. There are some good OS X programs that allow finegrained keyboard modifications though I was too cheap to buy them. On Unix/Linux obviously the sky's the limit ... When I was writing a book I made a backup script and bound it in Windowmaker to F12. With one keypress I could backup the right files, zip it, and send copies to different backup devices. I was really happy with how it worked out.
[toc] | [prev] | [next] | [standalone]
| From | Tim Watts <tw_usenet@dionic.net> |
|---|---|
| Date | 2014-03-31 15:35 +0100 |
| Message-ID | <a2bo0b-b6u.ln1@squidward.local.dionic.net> |
| In reply to | #2161 |
On 31/03/14 16:07, Tim Streater wrote: > No need to fart about like this. Just go into: > > System Preferences -> Keyboard -> Keyboard > > and click the Modifier Keys button The dropdown that appears will allow > you set set what the Caps Lock, CTRL, Option, and Command keys do. > Simples. > I use xfce4. ^^ doesn't work. I prefer the "core approach" for making sure stuff stays working - especially across window managers :)
[toc] | [prev] | [next] | [standalone]
| From | Randy Westlund <Vorzakir@invalid.invalid> |
|---|---|
| Date | 2014-04-01 21:14 +0000 |
| Message-ID | <lhfa7g$bei$2@dont-email.me> |
| In reply to | #2158 |
On 2014-03-31, RS Wood wrote: > It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you > need to map certain keys for typical purpose (e.g swapping caps and esc when > using vim). The day I figured out how to use xmodmap to make caps do esc made using vim sooo much easier. Sometimes my trackpad starts misbehaving and jumping around everywhere. My solution is 'sudo modprobe -r psmouse' until it feels like behaving itself again.
[toc] | [prev] | [next] | [standalone]
| From | Dario Niedermann <dnied@tiscali.it> |
|---|---|
| Date | 2014-04-03 11:37 +0200 |
| Message-ID | <slrnljqav2.akk.dnied@dnied-at-tiscali.it> |
| In reply to | #2158 |
RS Wood <rsw@therandymon.com> wrote: > From the «panic button top right» department: > Title: Toggle keyboard keys in Linux using terminal commands > Author: bob@lxer.com > Date: Sun, 30 Mar 2014 13:45:15 -0400 > Link: http://lxer.com/module/newswire/ext_link.php?rid=200358 > > It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you > need to map certain keys for typical purpose (e.g swapping caps and esc when > using vim). In this tutorial I will try to list different linux tools that > you can use to do these tasks (you might have to install them from the > repository. That only deals with X11, though. For the Linux console, here's how I exchange Escape and CapsLock: #----------------------------------------------------------- keycode 1 = Caps_Lock keycode 58 = Escape Escape Alt keycode 58 = Meta_Escape #----------------------------------------------------------- Put that into a file and load it with `loadkeys'. Keycodes might vary, depending on your keyboard layout. Find out the correct keycodes using `showkey'. -- > cat /etc/slackware-version && uname -mprs Slackware 14.0 Linux 3.12.0-dn i686 AMD Turion(tm) 64 Mobile Technology MK-36
[toc] | [prev] | [standalone]
Back to top | Article view | comp.misc
csiph-web