On Mon, Jan 11, 2016 at 09:06:21PM +0100, Fabien Meghazi wrote:
> On Mon, Jan 11, 2016 at 5:35 PM, Tom Hunt <[email protected]> wrote:
> > The binding for copy/paste is fundamentally application-dependent, not
> > amenable to control by the window manager. Even middle-click is only
> > "paste selection" if the application wants it to be; that's simply a
> > universal convention, whereas there's less consensus as to keyboard
> > shortcuts. The best available advice is probably to go into individual
> > application config and try to set it all there; some applications
> > won't support it.
>
> Indeed I saw that kind of problem. This is why ideally I would like
> being able to lazy bind a python function (is that possible with
> QTile) that would have specific logic according to the window name.
> (eg: Win+V in gvim would be a different beast)
untested, but something like this should work:
def foo(qtile):
paste["vim"] = (["control"], "v")
...
try:
args = paste[qtile.currentWindow.name]
qtile.cmd_simulate_keypress(*args)
except KeyError:
pass # do something default
> All I need is being able to make QTile directly send keystroke events
> as if the user pressed them on the keyboard.
> Any idea how to do that with QTile ?
>
> --
> 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.