ok, only now I found time to test this command. and it's not working for
me.
for test I create this two functions:
def next(manager):
if manager.currentWindow.name == 'sh':
log.debug("send ctrl l")
manager.cmd_simulate_keypress(['control'], 'l')
else:
log.debug("send next")
lazy.layout.next()
def previous(manager):
if manager.currentWindow.name == 'sh':
log.debug("send ctrl h")
manager.cmd_simulate_keypress(['control'], 'h')
else:
log.debug("send previous")
lazy.layout.previous()
and add binding
Key(
[mod], "h",
lazy.function(previous)
),
Key(
[mod], "l",
lazy.function(next)
),
in logs I see that when terminal window in focus it send simulated keys and
on any other window call laze.layout...
but none of this work, nor layout.next/previos, nor simulated keys.
What I'm doing wrong?
On Monday, June 8, 2015 at 10:13:16 AM UTC+3, Fabien Meghazi wrote:
>
> On Tue, Jun 2, 2015 at 9:32 PM, Pavel Aborilov <[email protected]
> <javascript:>> wrote:
> >
> > Thanks a lot.
> > cmd_simulate_keypress() that what I need.
>
>
> Could you show us what qtile config you ended up with for those
> bindings (+ which version of QTile you are using) ?
>
> I've been trying such key configuration without success:
> https://groups.google.com/d/msg/qtile-dev/e25bgej9Ses/pAczjD9lmEoJ
>
> --
> Fabien Meghazi
> http://www.amigrave.com
--
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.