You are not logged in.

#1 2012-09-27 14:38:36

cra
Member
From: Sweden
Registered: 2009-09-25
Posts: 70

Changing keymap for specific process

Hi.

I'm using dvorak programmer keyboard. Some cli utilities (for example, alsamixer) don't have an option to rebind the keys.
Is there a way to "loadkeys" for just one process? Therefore I could have it open in one Terminal and use there "regular" keyboard layout and my normal layout in any other windows.

I'd like to find the most WM-independent solution.

So far the only solution for that that works exactly as I would expect is to have my alsamixer in a terminal emulator that resides in a separate X11 session (which doesn't load my preferred keyboard layout). That looks a little over-engineering. Any ideas?


Thou shalt not make a machine in the likeness of a human mind

Offline

#2 2012-09-27 15:30:31

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: Changing keymap for specific process

hmm, haven't tried, but if this works

loadkeys /usr/local/share/kbd/keymaps/personal.map & alsamixer

you could add it as an alias to ~/.bashrc

alias alsamixer='loadkeys /usr/local/share/kbd/keymaps/personal.map & alsamixer'

but cant assure it will work, just wondering big_smile

Offline

#3 2012-09-27 15:44:55

cra
Member
From: Sweden
Registered: 2009-09-25
Posts: 70

Re: Changing keymap for specific process

Thanks for your reply!

Unfortunately, that would change keymap globally in this X server instance, which is unwanted.


Thou shalt not make a machine in the likeness of a human mind

Offline

Board footer

Powered by FluxBB