Kwin Scripts kwin

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/Aetf/kwin-maxmize-to-new-desktop

3
7.4
Description:

Mac OS like maximize to a new desktop.

Feature:

* Move window to a newly created virtual desktop when fullscreen/maximize.
* Move window back to original desktop when restored to normal size or closed.
* Configurable trigger: `fullscreen` or `maximize` or `both`.
* Configurable new desktop position: `right most` or `next to current desktop` or `next to app`.
* Window blacklist: windows that match the class name will not trigger the script.

Note:

The default behavior is triggered by window FULLSCREEN, not the normal maximize. Window fullscreen can be enabled by right-clicking on the window decoration -> `More Actions` -> `Fullscreen`.

Web browsers also enter fullscreen mode when the web page requests so, like clicking on the fullscreen button in videos. In Firefox or Chrome, pressing `F11` also triggers this.

Installation:

Install via Get New Scripts (Recommended)

Go to `System Settings` -> `Window Management` -> `KWin Scripts` -> `Get New Scripts...`, and then search for `kwin-maximize-to-new-desktop`.

Note: To get the configuration panel fully working, see troubleshooting below.

Install directly

Download the latest release here, and run plasmapkg2 --install kwin-maxmize-to-new-desktop-0.2.0.tar.gz

Note: To get the configuration panel fully working, see troubleshooting below.

Tips:

Get window's class for the blacklist

Right click on the window decoration of the window of interest, then select
`More actions` -> `Special Window Settings` in the menu. In the "Window matching"
tab, there's a little utility called "Detect Window Properties" that can be used to reveal information of clicked window.

Trouble Shooting:

No configuration button available in the KWin Scripts entry

Due to a technical limitation of installation, the desktop file is not installed into the correct place. More details here


mkdir -p ~/.local/share/kservices5
ln -s ~/.local/share/kwin/scripts/max2NewVirtualDesktop/metadata.desktop ~/.local/share/kservices5/max2NewVirtualDesktop.desktop


Blank window class blacklist in configuration

You need to install an additional package called `kdesignerplugin` (link),
which makes it possible to use KEditListWidget.

* For ArchLinux: pacman -Syu kdesignerplugin .
* For Ubuntu and alike: apt install kdesignerplugin .

Configuration is not picked up by the script after changing

Log out and log in again.

Or you could try something like the following to restart kwin (the executable name may be different depending on your Linux distribution.)

kwin_x11 --replace >/dev/null 2>/dev/null &; disown
Last changelog:

Release 0.2.2 1 month ago

- Improved: new trouble shooting about blank window blacklist
- Improved: fix typo in README

no1cares

2 months ago

8 +

Report

robcreel

4 months ago

8 +Thank you so much! This is excellent. I was aware of workspaces in Linux for some time, but never used them until this feature started in OS X. Porting it to K is the lord's work. Thank you.

Report

mockroot

6 months ago

8 +

Report

mishacorvus

7 months ago

How do I install it? I put it to /usr/share/kwin/effects and nothing happened. There is no shortcut in the Effects settings

Report

C

Aetf

6 months ago

Hi, this is not a KWin effect but a KWin script. You can go to System Settings -> Window Management -> KWin Scripts and enable the script from there. The easiest way to install the script I think is to use the "Get New Scripts..." button on the right and search for "Maximize to New Virtual Desktop".

Report

mishacorvus

6 months ago

Hi, thank you for your help, but I still can't get it running. I put it into /usr/share/kwin/scripts and it appears in the settings. Then I make a window fullscreen and it remains on current desktop.
By the way, in Russia the "Get New Scripts" doesn't work without VPN, so it's easier to just cp it into the proper directory

Report

C

Aetf

6 months ago

Hmm, try logout and login again, and make sure you are using fullscreen and not maximize. You can also right click on window decorations and see if Extensions -> Maximize To New Desktop -> Enabled is present and checked.

Report

lionelbino

8 months ago

8 +

Report

L0sted

10 months ago

8 +

Report

Warmuser

1 year ago

I don't exactly what's the cause, but everytime I enable these script, kwin starts crash. I'm on Fedora 28 with latest updates.

Report

nick87720z

1 year ago

Aetf: I just retried, with same version. And yes, context menu has "Extensions" submenu. And now it works. I don't know, why it did not.

Can't reply to your message, so wrote in new thread.

Report

C

Aetf

1 year ago

I'm glad it works!

Report

nick87720z

1 year ago

Hm, in all this thread i can reply to only own messages :/

Report

nick87720z

1 year ago

Hello. Would be great addon, but by some reason it doesn't work. After it is installed, i ensured, that proper kwin script is enabled. Though i doubt, that script is only reason, because all kde-store dialogs on my pc with kde began to show correct installed state and installation progress, since some version.

Report

nick87720z

1 year ago

kde 5.11.1, calculate linux (still have to upgrade)

Report

C

Aetf

1 year ago

When you right-click on the window title bar -> Extension, is there an menu item called "Maximize to New Desktop"? If not, then for some reason the script is not correctly loaded. Then could you open the Desktop Console[1] to load the script and send me the log by creating a new issue[2] on Github?

[1] https://techbase.kde.org/Development/Tutorials/KWin/Scripting#Quick_Start:_Desktop_Console
[2] https://github.com/Aetf/kwin-maxmize-to-new-desktop/issues/new

Report

Release 0.2.2 1 month ago

- Improved: new trouble shooting about blank window blacklist
- Improved: fix typo in README

Change Log 6 months ago

## 0.2.1

- Fixed: crash when fullscreen/maximized window is closed directly

## 0.2.0

- Fixed: Window loses focus after being moved to new desktop.
- Feature: Trigger by window maximize
- Feature: Customizable new desktop position
- Feature: Keep non-empty desktop
- Feature: Skip blacklisted windows
- Feature: Configuration UI
- Improved: Complete rewrite.

## 0.1.0

- Fixed: No more extra VD after closing fullscreened window directly.
- Improved: Code refactorings.

## 0.0.1

- Initial release. Mostly functional.

12345678910
8
product-maker no1cares Feb 28 2019 8 great
+
product-maker robcreel Dec 21 2018 8 great
+Thank you so much! This is excellent. I was aware of workspaces in Linux for some time, but never used them until this feature started in OS X. Porting it to K is the lord's work. Thank you.
product-maker mockroot Oct 30 2018 8 great
+
product-maker lionelbino Sep 12 2018 8 great
+
product-maker L0sted Jun 29 2018 8 great
+
product-maker deabru Jun 17 2017 8 great
product-maker baltolkien May 27 2017 8 great
product-maker rosenrot Feb 20 2017 8 great
product-maker Count: 2 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
BSD License
version
0.2.2
updated Mar 30 2019
added Feb 19 2017
downloads today
5
page views today 21