On Wed, Dec 17, 2014 at 04:43:09PM +0100, Fabien Meghazi wrote:
> On Wed, Dec 17, 2014 at 4:30 PM, Tycho Andersen <[email protected]> wrote:
> >> > Key([mod], "c", lazy.fake_keypress("X86Copy")),
> >> > Key([mod], "v", lazy.fake_keypress("X86Paste")),
> >
> > These should be XF86Copy, instead of X86Copy; did you copy and paste
> > my error perhaps?
> 
> It was originally a typo of mine but when checking xkeysyms.py I saw
> it was XF86*

Ok, and even with the right string it doesn't seem to work? Can you
send a debug log? It looks like you need to have something bound to
XF86Copy for qtile to actually propagate it.

> >> So I wonder if it's possible to make this fake_keypress() function to
> >> actually simulate multiple keystrokes like Ctrl+C, Ctrl+P
> >
> > I think so, you'll just have to set the right state bits in the event
> > you send to qtile. I can post a patch for that if you want.
> 
> I see the usage of the state bits in handle_KeyPress but I must admit
> that I don't know the values to use for Control modifier.
> Where can I see that ?

http://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html

In particular, you're interested in ShiftMask, LockMask, ControlMask,
Mod{1-5}Mask, which are exposed in xpyb/xcffib as:

xcffib.xproto.ModMask.Shift
xcffib.xproto.ModMask._1

etc.

> > No problem, it seems like a reasonable thing to want to do, so I don't
> > have any issue with building better support for it.
> 
> IIRC, some window manager allows one to configure the keystrokes for
> some "common" shortcuts such as Ctrl+Tab for tab navigation.
> Personally I prefer Win+Alt+<left|right> instead of Ctrl+Tab,
> Ctrl+Shift+Tab. Being able to configure this in Qtile is really a
> relief for me :-)

Glad to hear it!

Tycho

> -- 
> You received this message because you are subscribed to the Google Groups 
> "qtile-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to