Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/nclarius/KWin-window-positioning-scripts/tree/main/always-open-on-active-screen

Original
3
Become a Fan
8.1

Description:
Makes new windows always open on the monitor that has the mouse cursor.

The windows to be affected can be filtered by application.

Please make sure to install the most recent version (v5.0) and to not use Discover for installation. Please note the additional instructions for configuration on old Plasma versions. In order for the script to work properly you need to have 'Active screen follows mouse' enabled. For more information on installation, setup and usage as well as any requests, please visit the GitHub page.

Alternatives:

© 2021-2022 Natalie Clarius ‹natalie_clarius@yahoo.de›

with contributions by Joe Defenderfer and Tamim Baschour.

This work is licensed under the GNU General Public License v3.0.
This program comes with absolutely no warranty.
This is free software, and you are welcome to redistribute and/or modify it under certain conditions.

If you would like to thank me, you can always make me happy with a review or a cup of coffee:
Last changelog:

v5.0

- fix include/exlude list not working correctly
- port to JSON format for metadata
- fix formatting error in changelog bbcode
- minor code refactors


Ratings & Comments

18 Comments

joob

10 Please update this for Plasma 6.1! Took this for granted in Plasma 5, workflow is unbearable without it.

eleganttouch526

10 10 the best

oppnafickur

great maj

8090

10 Great script. I noticed it does not work with Snaps but it's not that of a big of a deal.

nclarius

You mean applications installed as a snap package?

8090

Yes..

nclarius

Hm, okay. I'm afraid there is nothing about the script I could change to accommodate that, so I guess the only solution is to use native packages if possible.

nclarius

One thing you could try is set up a window rule to ignore the requested geometry; I just added instructions in the readme on GitHub.

surobaki

10 You have no idea how long I've struggled with some specific apps not listening to KDE's Window Rules and other WM settings. Thank you.

webblitchy

10 Works perfectly

webblitchy

It looks great, but which one of the 5 versions should I install to have the last stable version ?

nclarius

The current version is always-open-on-active-screen-20211203004037.kwinscript. I do provide the version information in the package and you can see the version numbers in the Files tab here in the web store, but apparently the installer module built into the KDE system settings doesn't show them. I already filed a bug report for this, and until then will make sure to include version numbers also in the package name for future versions (can't change the existing ones though). Sorry for the confusion.

webblitchy

Oh yes ! Thank you for your fast answer !

mrs-policewoman

This is great, but it appears to override window-specific settings. Is there any way around that?

nclarius

Can you please describe the problem more precisely?

bobbywibowo

10 10 the best

swich

10 10 the best, all work properly

gammazoid

10 Perfect, now, with this script the launcher opens windows on the same screen as the launcher (or you can move the mouse in a hurry to place the new window on a different screen). And, in case of multiple sized monitors, the window is fitted onto the new screen. Place a launcher on each screen to get every new window where it belongs every time. Thanks.

Pling
0 Affiliates
Details
license GPLv3
version v5.0
updated
added
downloads 24h 5
mediaviews 24h 0
pageviews 24h 9

More Kwin Scripts from nclarius:

Application Switcher
nclarius
last update date: 2 years ago

Score 5.8

Window Gaps
nclarius
last update date: 2 years ago

Score 7.3

Floating Tiles - Prevent Window Overlap
nclarius
last update date: 2 years ago

Score 7.9

Always Open on Focused Screen
nclarius
last update date: 2 years ago

Score 6.3

Always Open on Primary Screen
nclarius
last update date: 2 years ago

Score 7.2

Swap Sides
nclarius
last update date: 3 years ago

Score 5.0

Other Kwin Scripts:

Snap To Deco
thomas12777
last update date: 11 years ago

Score 5.0

Unminimize windows w/o taskbar entry
thomas12777
last update date: 11 years ago

Score 5.0

MiniStack
faho
last update date: 11 years ago

Score 5.0

Debug Clients
thomas12777
last update date: 11 years ago

Score 5.0

TIL3R
causa-prima
last update date: 11 years ago

Score 5.7

Spam Transients
thomas12777
last update date: 10 years ago

Score 5.0



System Tags