New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Want a mode to emulate arrow-keys with letters ... why isn't this working?
Post Body

Hi all!

I want to have an i3-mode that allows me to use letters as arrow keys ... so i wrote this and I don't know why it's only triggering very rarely.

# Cursorkeys mode
mode "cursorkeys" {
    bindsym Escape mode "default"
    bindsym u exec xdotool key Up
    bindsym e exec xdotool key Down
    bindsym n exec xdotool key Left
    bindsym i exec xdotool key Right
}
bindsym $mod F2 mode "cursorkeys"

As a comparison, this following mode to move the mouse with keys works perfectly:

# MOUSE MOVE MODE
mode "movemouse" {
    bindsym Escape mode "default"
    bindsym u exec xdotool mousemove_relative -- 0 -15
    bindsym e exec xdotool mousemove_relative -- 0 15
    bindsym n exec xdotool mousemove_relative -- -15 0
    bindsym i exec xdotool mousemove_relative -- 15 0

    bindsym Up exec xdotool mousemove_relative -- 0 -15
    bindsym Down exec xdotool mousemove_relative -- 0 15
    bindsym Left exec xdotool mousemove_relative -- -15 0
    bindsym Right exec xdotool mousemove_relative -- 15 0

    bindsym space exec xdotool mousedown 1
    bindsym space --release exec xdotool mouseup 1
    bindsym Return exec xdotool click 3
}
bindsym $mod F4 mode "movemouse"

Something seems off here ... maybe somebody can help me out :)

Thanks, Joe

i3 --version is 4.19.2 --- keyboard layout is colemak --- xdotool --version is 3.20210903.1

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
6,617
Link Karma
1,250
Comment Karma
5,349
Profile updated: 1 day ago
Posts updated: 6 months ago
i3

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago