You are not logged in.

#1 2020-02-07 04:48:07

DeletedUser2111042
Banned
Registered: 2020-02-01
Posts: 5

[SOLVED] How can I set the default cursor position after boot?

Using Arch with KDE Plasma 5.17.5

I know, it is very petty inconvenience, but it still bothers me and I would like to know if and how I would go about resolving this.

So basically, when I boot my machine, before moving the mouse at all, the cursor is, by default, located on the left-middle section of my primary monitor (I have 2 monitors). For some stupid reason, this bugs me. I would like to know if and how I could change the default position to the center of my primary monitor?

Any help is appreciated!!

Last edited by DeletedUser2111042 (2020-02-14 16:43:00)

Offline

#2 2020-02-07 07:53:28

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] How can I set the default cursor position after boot?

If this is an X11 session you can use "xdotool mousemove <x> <y>" to position the mouse (coordinates are relative to the root window, ie. the combined geometry -  you cannot move the mouse out of the screen)

Offline

#3 2020-02-08 03:00:42

DeletedUser2111042
Banned
Registered: 2020-02-01
Posts: 5

Re: [SOLVED] How can I set the default cursor position after boot?

seth wrote:

If this is an X11 session you can use "xdotool mousemove <x> <y>" to position the mouse (coordinates are relative to the root window, ie. the combined geometry -  you cannot move the mouse out of the screen)

Okay so I tried the command after I installed the tool and everything worked fine. I wasn't quite sure how to set the default position with it, however. I figured this was a dumb idea, which it was, but I tried to create a crontab that would run that command upon boot, but no luck. Do you by chance know how I could use this tool to set the cursor's default position upon boot or login? Say in the middle of the screen (coordinates are (2640,540))

Offline

#4 2020-02-08 09:01:38

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] How can I set the default cursor position after boot?

Have the script started by your DM, xinitrc or a session autologin mechanism?

Offline

#5 2020-02-13 01:47:45

DeletedUser2111042
Banned
Registered: 2020-02-01
Posts: 5

Re: [SOLVED] How can I set the default cursor position after boot?

seth wrote:

Have the script started by your DM, xinitrc or a session autologin mechanism?

Apologies for taking so long to reply, I have had a very busy week. But that was it, that simple haha, thank you so much!!

Offline

#6 2020-02-13 14:22:08

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] How can I set the default cursor position after boot?

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB