[winswitch] Specifying xmodmap settings (in a file)
alelog at gmail.com
Wed Jun 6 17:27:31 BST 2012
Okay, thanks for clarifying things!
I'm still a bit confused by the fact that my problem is very similar
to what was discussed in xpra.org/trac/ticket/50 (it talks about a
hack to wrap modifier setting in clear/add context). There, it was
noted that xpra.org/trac/changeset/325 provides a better fix (reading
actual "xmodmap -pm" settings instead of hardcoding modifier
All I really care about is the use of the Mac Alt keys (just the left
one would be good enough) as Meta. The clear/keycode/add sequence is
simply following the standard incantation that's recommended in
various xmodmap discussions and man pages.
Perhaps, I'll try the xpra/xposix/gui.py patch from
xpra.org/trac/ticket/50 (with appropriate modifier changes) to see if
On Wed, Jun 6, 2012 at 7:38 AM, Antoine Martin <antoine at nagafix.co.uk> wrote:
> On 06/06/2012 12:51 AM, Alexey Loginov wrote:
>> Hi Antoine,
>> I switched to the latest, given that you fixed the 'a' issue--thanks a lot!
>> Now, I still can't apply my desired xmodmap settings and I'm a bit
>> confused as to the mechanism I should follow. Perhaps, you can
>> clarify the next few points for me:
>> 1. The latest version has xpra.org/trac/changeset/325 and
>> winswitch.org/trac/changeset/4802. Does one or the other of these,
>> negate the need for custom xmodmap files?
> In theory, xpra detects your keymap and all is well.. in theory..
>> 2. When do I need the ability to set custom xmodmap settings with the
>> above? (If I don't ever run X, perhaps?) I see that you added the
>> ability to use custom xmodmap files in
> I have, but this is only for when you are using NX with winswitch.
> (I have tested this briefly and it seemed to work)
> As per above, Xpra is supposed to handle keymaps transparently for you,
> so at present there are no facilities for providing overrides at present.
>> 3. Do the changesets in question 1 (and the custom settings in
>> question 2) handle the "clear ... ; keycode ... ; add ..." sequence
>> correctly (to clear the old logical modifiers, map keysyms, and then
>> apply new logical modifiers)?
> No, these changesets are not going to help your special case I am afraid.
>> I restarted WinSwitch with the X server running. Then, I restarted it
>> after making the conf-file changes mentioned in global_settings.py. I
>> see mentions of reading appropriate xmodmap settings in log files but
>> I still don't have the Alt key work as Meta. Any thoughts as to what
>> I'm doing wrong?
> Absolutely nothing!
> The problem is with xpra (or to be precise, GTK/X11 and in your case
> GTK/OSX) fails to detect the correct key mapping that you have...
> There are a number of keyboard bugs in trac that I intend to deal with:
> However, it may well be that your case cannot be fixed if the problem
> lies in the underlying GTK or OSX libraries (as I believe it to be the
> case), so you would need a different solution, I have created a ticket
> for it here:
> It does not look particularly difficult to implement, once I get around
> to it...
>> On Sun, Jun 3, 2012 at 2:55 AM, Antoine Martin <antoine at nagafix.co.uk> wrote:
>>> I can reproduce the missing 'a' issue now, so I will fix this asap.
>>> I have created a ticket for your xmodmap settings option:
>>> Feel free to add info/comments there.
>>> On 06/03/2012 02:36 AM, Alexey Loginov wrote:
>>>> Hi all,
>>>> I'm setting up xpra/WinSwitch, using older versions (0.7.36/12.10) to
>>>> get around the missing 'a' issue (https://xpra.org/trac/ticket/92).
>>>> Older versions don't handle xmodmap setting with modifier keys (e.g.,
>>>> to swap Escape and Alt, as I do in my .Xmodmap file, shown below).
>>>> Is there an easy way just to ask WinSwitch/xpra to use an existing
>>>> .Xmodmap file (e.g., by copying it to .winswitch/server/xmodmap or
>>>> something like that)? I got a bit tangled up in the many set_xmodmap
>>>> functions trying to use a file that I place in the above directory and
>>>> not let it be overwritten with new xmodmap calls.
>>>> Of course, if the partial version of xmodmap settings like below
>>>> doesn't work, please let me know. Thanks for any help!
>>>> ! Make esc and alt behave as Meta:
>>>> clear Mod1
>>>> clear Mod2
>>>> keycode 63 = Mode_switch
>>>> keycode 66 = Meta_L
>>>> keycode 69 = Meta_R
>>>> add Mod1 = Meta_L Meta_R
>>>> add Mod2 = Mode_switch
>>> shifter-users mailing list
>>> shifter-users at lists.devloop.org.uk
More information about the shifter-users