Virtual Desktops Only on Primary Display

KWin Scripts

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

https://github.com/Ubiquitine/virtual-desktops-only-on-primary

2
Become a Fan
5.0

Description:
Fork of wsdfhjxc's script to force virtual desktops behavior only on primary display.

IMPORTANT:
This script is intended for laptops that have external monitor connected.
The script might not work well on desktops with multiple monitors due to unpredictable power management for each monitor.

The script basically pins every window that is not on primary display to be on all virtual desktops.
So it appears as if virtual desktops don't exist on other displays.

For fine tuning the script provides some configuration, e.g. if you primary display is not the first one in KWin list.
In that case, in order to determine the index of you screen use the bash script that is shipped in the package:

bash ~/.local/share/kwin/scripts/virtual-desktops-only-on-primary/list-screens.sh

After running this script in the terminal you should see the names and the index numbers of your screens. You can then adjust the configuration accordingly.
Last changelog:

v0.4.5

* Added config option to select index of the primary screen. The default is 0.
* Added config option to specify number of screen if there are more than 2.
* Improve windows tracking filter
* Fixed the issue when primary screen is not available right away, e.g. on desktop without built-in display after reboot or wake from sleep


Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license GPLv3
version
updated
added
downloads 24h 1
mediaviews 24h 0
pageviews 24h 1

More KWin Scripts from berlioz-ubiquitus:

Temporary Virtual Desktops
berlioz-ubiquitus
last update date: 4 months ago

Score 6.4

MACsimize6
berlioz-ubiquitus
last update date: 4 months ago

Score 6.3

Other KWin Scripts:

Sticky Window Snapping
Flupp
last update date: 8 months ago

Score 8.8

Grid-Tiling-Kwin
lingtjien
last update date: 1 year ago

Score 7.1

Quick Tile 2
tsoernes
last update date: 11 months ago

Score 5.8

UltrawideWindows
nopaste
last update date: 1 year ago

Score 8.8

KWin dynamic workspaces
d86leader
last update date: 2 months ago

Score 7.5

Toggle Window Visibility
arnek01
last update date: 10 months ago

Score 5.0



System Tags