Open szebenyib opened 5 months ago
For plasma 6, I have personally modified the script for adapting the new KWin APIs (the KDE's document seems way out of date btw.), https://github.com/hyptrap/kwin-scripts/commit/e5adb4c4fd230c49bcc660f15eeff3a6afb516f4 , but only for the virtual-desktops-only-on-primary
script.
For those who want to adapt other scripts, the real API exposed is the Q_PROPERTY
part of which files
Due to incomplete changes for other scripts, no pull request will be made currently🫢.
Many many many thanks for doing this modification and for submitting it here!!!! I am on a leave currently but I will try it out once I get home.
I have tried to enable it but somehow my installation is messed up. Do you know what I should delete to get to an initial state? If I remove the contents of .local/share/kpackage/generic/virtual-desktops-only-on-primary then the install script runs fine according to the output, but the script does not show up in kwin scripts for enablement.
I have tried to enable it but somehow my installation is messed up. Do you know what I should delete to get to an initial state? If I remove the contents of .local/share/kpackage/generic/virtual-desktops-only-on-primary then the install script runs fine according to the output, but the script does not show up in kwin scripts for enablement.
The script directory of (my) Plasma 6 is $HOME/.local/share/kwin/scripts/virtual-desktops-only-on-primary
, sorry for forgetting to fix the helper.sh
script, now it has been updated at https://github.com/hyptrap/kwin-scripts :)
And I changed the primary screen logic as in https://github.com/wsdfhjxc/kwin-scripts/issues/9#issuecomment-1744811107 issue, but not sure if it can truly address it, you can have a try then.
Many thanks, now it installs and enables just fine. The main screen detection does not wok though (using X11). In the end I have now modified it now to not take the active screen, but rather the 0. element of the screens array (more precisely its name) - so back to the old way. Is there any way I can buy you a coffe? Patreon or similar?
This 0 does not work well either unfortunately. It randomly associates my screens to that position. It would be best if somehow the built-in could be detected.
On an up to date arch linux using plasma 6 the script says: