I3: How to use xdotool in i3?

Created on 23 Nov 2015  ·  4Comments  ·  Source: i3/i3

I would like to emulate the following arrow keys through xdotool via i3:

bindsym $mod+Tab+h exec xdotool key "Left"
bindsym $mod+Tab+j exec xdotool key "Down"
bindsym $mod+Tab+k exec xdotool key "Up"
bindsym $mod+Tab+l exec xdotool key "Right"

Unfortunately, i3 doesn't seem to recognize the bindsyms. The commands, e.g. xdotool key "Left" does work through the command line.

Edit:
My i3 version:
i3 version 4.11 (2015-09-30, branch "4.11") © 2009 Michael Stapelberg and contributors

missing-log missing-version

Most helpful comment

Use e.g. bindsym --release $mod+Tab+h exec --no-startup-id xdotool key "Left", so that i3 executes that keybinding when the key is released.

All 4 comments

I don’t see a link to logs.i3wm.org. Did you follow http://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

I don’t see a version number. Could you please copy & paste the output of i3 --version into this issue?

Use e.g. bindsym --release $mod+Tab+h exec --no-startup-id xdotool key "Left", so that i3 executes that keybinding when the key is released.

@stapelberg --release only seems to pay attention to when any key in the bind is released. If you release one of the keys before $mod i3 handles it as a the $mod+left bind.

(Currently adding a bind that types today's date, the numbers jump my workspaces around and put dashes in open text editors, solving with a sleep 0.5 for now)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

acrisci picture acrisci  ·  4Comments

mb720 picture mb720  ·  3Comments

fulljackz picture fulljackz  ·  3Comments

Airblader picture Airblader  ·  4Comments

rgaufman picture rgaufman  ·  4Comments