scroll down with a virtual device
| src | done | |
| README.md | Update README.md | |
virtual wheel daemon
this project was created out of necessity, because of RSI.
build:
$ gcc -o wheel-daemon daemon.c
$ gcc -o scroll client.c
initialize the daemon in background, then use the client (bind it to a key) , the code below shows it in xmonad :
scrolling :: String -> String
scrolling "⬇" = "/home/hashirama/.local/bin/scroll down --steps 2 --interval 5 --value 1"
scrolling "⬆" = "/home/hashirama/.local/bin/scroll up --steps 2 --interval 5 --value 1"
then:
, ("M-.", spawn (scrolling "⬆"))
, ("M-,", spawn (scrolling "⬇"))