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
Ryuke
4 months ago
Report
geier
5 months ago
Report
linux-oid
5 months ago
Report
iceler
7 months ago
Report
polisson
8 months ago
I have a tiny feature request: possibility to fullscreenize to other display (not workspace but monitor/device).
Would be great to send to TV screen on fullscreen action.
Report
zwambro
11 months ago
can you fix it please ?
thank you in advance.
Report
jackchealdang
9 months ago
Report
d86leader
1 year ago
would be perfect if not for the "opening a maximized window" issue
Report
no1cares
1 year ago
Report
robcreel
2 years ago
Report
mockroot
2 years ago
Report
mishacorvus
2 years ago
Report
Aetf
2 years ago
Report
mishacorvus
2 years ago
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
Aetf
2 years ago
Report
lionelbino
2 years ago
Report
L0sted
2 years ago
Report
Warmuser
2 years ago
Report
nick87720z
3 years ago
Can't reply to your message, so wrote in new thread.
Report
Aetf
3 years ago
Report
nick87720z
3 years ago
Report
nick87720z
3 years ago
Report
nick87720z
3 years ago
Report
Aetf
3 years ago
[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