Je 2015-09-01 21:27:20
Nokan Emiro <uzleep...@gmail.com> skribis:

(…)
> but this one (that sleeps 0.5 sec before simulating the keypresses) did:
> 
> xte 'usleep 500000' 'keydown Shift_L' 'keydown Caps_Lock' 'keyup Caps_Lock'
> 'keyup Shift_L'
> 
> So, this seems to be some stupied timing issue.  I'm sorry about
> bothering...

If it’s just a timing issue, you may want to add a delay, like this:

for_window [window_role="terminal"] exec --no-startup-id sleep 1 && dbus-send 
--dest=ru.gentoo.KbddService /ru/gentoo/KbddService ru.gentoo.kbdd.set_layout 
uint32:1

-- 
Mateusz Poszwa

Reply via email to