-----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/ iQEcBAEBAgAGBQJNunVsAAoJEN7RcJcJCZJip1UH/2r0uPUR3tIvOJWeOGaks3s0 ftB4Eq8XgvSKT3jBGIuTZu5XK6flC95O3M+3e0S27usm4nm32dNw6l/9fMvvqjj/ Q9FalBIjjo+f2fy05jshN9Txf247Uhdq2afz1d+tV/f5KQhS02mpMNP7nojyEFjz CPsfzTiyLK11CGqU69z7Ad8SkUnYK/yMByiX2rXgQSLCFRaRzi11NKx12zhYmNpY 439RThwCUl8sDuNM8CPuXYEle9lkgVS2IhZXg9Jhl34tK0+rnDlVybMfwvUSGf2g a/quCQh8+6h8aYRUE8EUxyQNbWjbUs90Yyi2Q7m7f5/Zaq7H8BRTdLZWJ0O9160= =8gnx -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4dba7572.3020...@gmail.com