You are not logged in.

#1 2009-08-19 21:00:39

peabrain
Member
Registered: 2005-08-08
Posts: 42

Emulate mouse scroll with keyboard [solved]

I'd like to be achieve a mouse scroll wheel functionality with keyboard, that is, to be able to scroll n lines by using a keyboard shortcut. Page up/down jumps too much and arrow up/down is quite slow and not so eye-friendly. So I'd like to be able to scroll, say, five lines down when pressing something like Ctrl + arrow down.

I'm using KDE 4.3 at the moment and couldn't find anything related in the settings, so I'm guessing it requires a bit more effort. Would it be possible to map some keys into sending an event similar to the event that is caused by scrolling the scroll wheel? I tried to see what xev says about scrolling the wheel, but that didn't help much.

Last edited by peabrain (2009-08-19 23:43:23)

Offline

#2 2009-08-19 21:13:15

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Emulate mouse scroll with keyboard [solved]

Hello peabrain!

You can do that in vim, it's sure.

Offline

#3 2009-08-19 21:24:26

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Emulate mouse scroll with keyboard [solved]

Maybe xbindkeys with xdotool, but I don't know if this is without lag.
Something like this in .xbindkeysrc
"xdotool key --clearmodifiers Up Up Up Up Up"
   Control + Up

Offline

#4 2009-08-19 23:44:46

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: Emulate mouse scroll with keyboard [solved]

Procyon wrote:

Maybe xbindkeys with xdotool

Just what the doctor ordered.

Thanks!

Offline

Board footer

Powered by FluxBB