Skip to content

siimpliidiip/kde6-plasma-multimonitor-window-center

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

KWIN Script to Center and Resize a Window in a monitor on a Multi-Monitor Setup

This is a basic script redone using sample and understanding from the following sources

The Scripting API documentation is quite sparse to really understand what each bit of code does. So had to use the above sources to figure it out.

Essentially, it calculates the screen size and resizes the window and adds a margin that is calculated using the total screen area to position it back accurately in the specific screen the window existed in.

Installation

Clone this repo and run kpackagetool6 --type=KWin/Script -i <foldername>/ . Go to Window Management -> Kwin Scripts and enable the newly installed script
Go to Shortcuts and assign a shortcut for the actions you need.

Look at contents/code/main.js to customise as per your requirements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published