Score:1

How to set the cursor location in a Gnome Shell Extension?

br flag

I'm trying to set my first steps in a Gnome Extension to help visually impaired people to find the cursor by moving to it a fixed location.

As it seems there is no easy way to do this.

I have a hacked a rather simple solution with dotool, but that seems to be overkill, and it's not that trivial to install (not in the debs).

I'm able to get the mouse location in a test extension by:

....
let [mouse_x, mouse_y, mask] = global.get_pointer();
....

But, alas, global.set_pointer(30,20) is not a function.

Is there a way to do this, (and where can I find the docs for the global object?)

vanadium avatar
cn flag
Perhaps this: https://stackoverflow.com/questions/41474276/can-gnome-shell-extensions-move-the-pointer-if-so-how
Janghou avatar
br flag
Thx again, I already saw that post, but I considered that outdated. This feeling is creeping up [gnome-shell-breaks-catastrophically-every-few-month] ;) I think I'll try discourse.gnome.org
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.