#[Solved] Howto make firefox start on a specific monitor

1 messages · Page 1 of 1 (latest)

thick scarab
#

Hi,

I have a 3 monitor setup and i would like firefox to always open on the left most monitor. I'm on POP_OS /gnome with the tiling plugin enabled.
I've tried with -left=0 -top=0 but when i start firefox it wants to start in 0,0 but then moves to the monitor my cursor is in. I don't see any other programs do this. It's like specifically for firefox there is some extra behavior that moves it after startup. Discord for example always starts on my right most monitor, except for the splash screen which always start on the left most for some reason.

Any way to influence this behavior?

Thanks

mellow peak
oblique plume
oblique plume
#

Yeah, not sure why Anonim linked you to what they did, but, there's no sense in using such code when sucj things excist already. wmctrl is another useful thing, if you want to script arrangements, manually and not persistently like devilspie/devilspie2 does.

thick scarab
#

[Solved] Howto make firefox start on a specific monitor

#

I solved it with devilspie2 using the following script in ~/.config/devilspie2/firefox.lua:

    set_window_position(1, 1)
end```
#

I start devilspie2 at gnome startup using an .desktop file in ~/.config/autostart