Hi, is it possible to use xmodmap or a similar utility, on a per
application basis?
Currently I have redefined my keybindings using xmodmap to get my
Logitech remote control working with MPlayer, but this breaks a lot of
other applications!
- --
Regards,
Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DB96F7B.8060203@gmail.com">http://lists.debian.org/4DB96F7B.8060203@gmail.com
04-28-2011, 01:45 PM
Panayiotis Karabassis
xmodmap per application
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, is it possible to use xmodmap or a similar utility, on a per
application basis?
Currently I have redefined my keybindings using xmodmap to get my
Logitech remote control working with MPlayer, but this breaks a lot of
other applications!
- --
Regards,
Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DB96F7B.8060203@gmail.com">http://lists.debian.org/4DB96F7B.8060203@gmail.com
04-28-2011, 06:24 PM
Camaleón
xmodmap per application
On Thu, 28 Apr 2011 16:45:31 +0300, Panayiotis Karabassis wrote:
> Hi, is it possible to use xmodmap or a similar utility, on a per
> application basis?
>
> Currently I have redefined my keybindings using xmodmap to get my
> Logitech remote control working with MPlayer, but this breaks a lot of
> other applications!
Can xmodmap detect the application is being run and act accordingly? I
don't see how it could "filter" or "differentiate" the key remapping in
real time based on the app :-?
Instead, have you thought in solving the issue with the overlapping of
the mapped keys?
Greetings,
--
Camaleón
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.04.28.18.24.29@gmail.com">http://lists.debian.org/pan.2011.04.28.18.24.29@gmail.com
04-28-2011, 06:43 PM
Panayiotis Karabassis
xmodmap per application
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/28/2011 09:24 PM, Camaleón wrote:
> Can xmodmap detect the application is being run and act accordingly? I
> don't see how it could "filter" or "differentiate" the key remapping in
> real time based on the app :-?
No, I too don't think it's possible.
> Instead, have you thought in solving the issue with the overlapping of
> the mapped keys?
What to do you mean exactly by "overlapping of the mapped keys"?
For example, if one application demands "keycode 60 = F" and another
application demands "keycode 60 = ." (as is the case) to define "keycode
60 = . F"?
No, I think this would be problematic, because 'F' is a printable
character, and I don't want to type 'F' every time I press '.'!
- --
Thank you,
Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DB9B554.3080409@gmail.com">http://lists.debian.org/4DB9B554.3080409@gmail.com
04-28-2011, 09:37 PM
Siard
xmodmap per application
Camaleón wrote:
> Can xmodmap detect the application is being run and act accordingly?
While the application is running, the '.' key produces an F;
after quitting the application, things are back to normal.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110428233700.1406ad27.shiems146@kpnplanet.nl">ht tp://lists.debian.org/20110428233700.1406ad27.shiems146@kpnplanet.nl
04-29-2011, 07:24 AM
Andrei Popescu
xmodmap per application
On Jo, 28 apr 11, 23:37:00, Siard wrote:
> Camaleón wrote:
> > Can xmodmap detect the application is being run and act accordingly?
>
> I could only think of writing a script like this:
>
> #! /bin/sh
> xmodmap -e 'keycode 60 = F' & /usr/bin/<application>; xmodmap -e 'keycode 60 = period'
>
> While the application is running, the '.' key produces an F;
> after quitting the application, things are back to normal.
That works if one doesn't Alt+Tab to another application.
Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
04-29-2011, 08:23 AM
Panayiotis Karabassis
xmodmap per application
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/29/2011 12:37 AM, Siard wrote:
> Camaleón wrote:
>> Can xmodmap detect the application is being run and act accordingly?
>
> I could only think of writing a script like this:
>
> #! /bin/sh
> xmodmap -e 'keycode 60 = F' & /usr/bin/<application>; xmodmap -e 'keycode 60 = period'
>
> While the application is running, the '.' key produces an F;
> after quitting the application, things are back to normal.
Do we have any way of detecting "on focus" events?
- --
Regards,
Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DBA7572.3020301@gmail.com">http://lists.debian.org/4DBA7572.3020301@gmail.com
04-30-2011, 02:11 AM
Richard Hector
xmodmap per application
On Thu, 2011-04-28 at 16:45 +0300, Panayiotis Karabassis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, is it possible to use xmodmap or a similar utility, on a per
> application basis?
>
> Currently I have redefined my keybindings using xmodmap to get my
> Logitech remote control working with MPlayer, but this breaks a lot of
> other applications!
I've never tried this, or any keyboard remapping that I can remember,
but it seems to me it might be better to do this on a per input device
basis rather than per application.
setxkbmap(1) looks like it might do the trick?
Richard
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1304129474.4590.7.camel@zircon.lan.walnut.gen.nz"> http://lists.debian.org/1304129474.4590.7.camel@zircon.lan.walnut.gen.nz