Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use xdotool in i3? #2080

Closed
sirlnx opened this issue Nov 22, 2015 · 4 comments
Closed

How to use xdotool in i3? #2080

sirlnx opened this issue Nov 22, 2015 · 4 comments
Labels
missing-log Read the CONTRIBUTING.md file for instructions missing-version

Comments

@sirlnx
Copy link

sirlnx commented Nov 22, 2015

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

@i3bot
Copy link

i3bot commented Nov 22, 2015

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.)

@i3bot
Copy link

i3bot commented Nov 22, 2015

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

@i3bot i3bot added missing-log Read the CONTRIBUTING.md file for instructions missing-version labels Nov 22, 2015
@stapelberg
Copy link
Member

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.

@wjdp
Copy link

wjdp commented Feb 6, 2019

@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)

wjdp added a commit to wjdp/dotfiles that referenced this issue Feb 6, 2019
--release does not seem to work when the mod key is held down after releasing b :'(

i3/i3#2080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing-log Read the CONTRIBUTING.md file for instructions missing-version
Projects
None yet
Development

No branches or pull requests

4 participants