Hacker News new | ask | show | jobs
by TokenDiversity 3272 days ago
You sound like someone who'd like keynav http://www.semicomplete.com/projects/keynav
1 comments

Since it wasn't linked last time I looked, code is also at https://github.com/jordansissel/keynav

Shameless plug: I maintain a fork at https://github.com/yjftsjthsd-g/keynav because the original author hasn't been active in a while.

Edit: wrong link :)

That looks pretty interesting. stole the idea and made something similar in bash: https://github.com/mortie/nixConf/blob/master/bin/mousetree, with hotkeys configured with sxhkd: https://github.com/mortie/nixConf/blob/d87f241963edc49a57171...
Not so shameless if you add a scroll functionality I tell you lol.

Actually even otherwise, it's not like you're earning money so no need to disclaim!

Heh, so I went to look and see how hard it would be to simulate mouse scrolling, and the answer is... none. Literally none. Because X11 "mouse scroll" events are represented as button presses. Mouse buttons are 1=left, 2=middle, 3=right, 4=scroll-up, 5=scroll-down. So you just stick the relevant lines in your keynavrc; ex.

   i click 4                                                                                                                             
   e click 5                                                                                                                             
That said, I may make an effort to document this better.
I saw, I came here to thank and noticed you replied :)
Hm. That would be useful. I might have to do that.