You are not logged in.
Pages: 1
Hi,
I have a question I couldn't solve (I tried to google it but maybe there are some language barriers and I can't fint anything).
Anyway, I have 2 monitors and I'd like my cursor to move cyclically through them,
when i reach the right edge of the right monitor the cursor should appear on the left edge of the left monitor and vice versa.
Is that something doable??
Thanks.
Offline
I had probably to give some more info..
I use kde4 (but I can change if needed)
I did some more research and I don't think what I asked is possible, no wonder I couldn't find anything.
But..
with kwinscript is possible to bind a function to the "cursor on edge" event
https://techbase.kde.org/Development/Tu … #Functions
bool registerScreenEdge(ElectricBorder border, QScriptValue callback): Registers the callback for the screen edge. When the mouse gets pushed against the given edge the callback will be invoked.
the problem now is that I can't find in that api how to get mouse coordinates.
(should I move this to another section if it becomes a script problem??)
Thanks again.
Offline
This is very doable. It would be easiest to do as a modification to a WM, but with kwin that is likely not very practical.
But if you already have a hook for when the mouse reaches the edge of the screen, xdotool can very easily handle the rest.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Pages: 1