You are not logged in.

#1 2017-07-19 13:24:20

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

[Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

This is just a little thing on XFCE that shouldn't bother me as much as it does, but it does. Using XFCE w/Compiz & dual monitors, upon boot the mouse pointer's default location is centered between the 2 monitors (so half the pointer is on one monitor, the other half the other).  While on my Cinnamon installation, the mouse pointer is centered in the primary monitor upon boot. Is there a way to set the pointer to be centered in the primary monitor instead of between the 2 monitors on XFCE? I don't think it's related to Compiz, but rather XFCE itself.

Last edited by Annoyingduck (2017-09-07 23:28:42)

Offline

#2 2017-07-19 13:38:55

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

In your "~/.xinitrc" file / autostart file:

xdotool mousemove 800 600

big_smile

Offline

#3 2017-07-19 14:52:39

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: [Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

drcouzelis wrote:

In your "~/.xinitrc" file / autostart file:

xdotool mousemove 800 600

big_smile

My .xinitrc file only contains  "exec startxfce4", not clear on the autostart directory, as the original is only a file.  Are you suggesting adding

xdotool mousemove 800 600

to that file?

Offline

#4 2017-07-19 15:01:21

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

Sure, give it a try in your "~/.xinitrc" file.

xdotool mousemove 800 600
exec startxfce4"

You can read more about it here: https://wiki.archlinux.org/index.php/Xf … plications

Offline

#5 2017-07-19 15:03:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

Yes, add the xdotool command before your exec line.

If your .xinitrc only contains 'exec startxfce4' then it's missing some vital lines. Read the xinit wiki article for more details.

Last edited by Slithery (2017-07-19 15:05:29)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-09-07 23:28:28

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: [Solved] XFCE Dual Monitor Boot Up Mouse Pointer Location

I misunderstood the directions here, didn't realize a program needed to be installed - I assumed it was a file edit of some kind. Anyways this is how I did it:
-Install xdotool (missing in the response)
-Add this command to startup applications:

xdotool mousemove 960 540

-Adjust numbers to the position you want the mouse in.  For 1920x1080 screeens, 960 540 centers the mouse.

Offline

Board footer

Powered by FluxBB