KWin-window-geometry-scripts icon indicating copy to clipboard operation
KWin-window-geometry-scripts copied to clipboard

Plasma 6

Open john-okeefe opened this issue 1 year ago • 6 comments

Is there an idea of when this will be ported to Plasma 6? I use swap windows all the time and am really missing it.

john-okeefe avatar Mar 07 '24 14:03 john-okeefe

Unfortunately as of now there is no porting guide describing what needs to be changed to make KWin scripts work with Plasma 6, so it will take me some time to figure it out. Sorry about that. It is planned though.

nclarius avatar Mar 12 '24 14:03 nclarius

I was reading below

https://discuss.kde.org/t/kwin-scripting-from-5-x-to-6-x-compatible/2905

And tried to make the function changes to the script myself. My issue is, while the install script reports all went well, it never actually shows in the Scripts dialogue in System Settings.

john-okeefe avatar Mar 12 '24 19:03 john-okeefe

I was reading below

https://discuss.kde.org/t/kwin-scripting-from-5-x-to-6-x-compatible/2905

And tried to make the function changes to the script myself. My issue is, while the install script reports all went well, it never actually shows in the Scripts dialogue in System Settings.

You mean you tried to do the necessary changes to my script? Could you publish the code so I can take a look?

nclarius avatar Mar 12 '24 22:03 nclarius

Okay. I have created a pull request. https://github.com/nclarius/KWin-window-geometry-scripts/pull/5

john-okeefe avatar Mar 13 '24 12:03 john-okeefe

When trying to install it does copy the folder over and edit the kwinrc file, however we get this error.

qt.dbus.integration: QDBusConnection: error: could not send signal to service "" path "/KPackage/" interface "org.kde.plasma.kpackage" member "packageInstalled": Invalid object path: /KPackage/

john-okeefe avatar Mar 13 '24 12:03 john-okeefe

Maybe it's with the kpackagetool6 command. When I list-types it's a bit different.

KPackageTool5

╰─λ kpackagetool5 --list-types
Package types that are installable with this tool:
Built in:
KPackage Structure Name  Path
-----------------------  --------------------
KPackage/Generic         kpackage/packages/
KPackage/GenericQML      kpackage/genericqml/

Provided by plugins:
KPackage Structure Name    Path
-------------------------  --------------------------
Plasma/Applet              plasma/plasmoids/
Plasma/ContainmentActions  plasma/containmentactions/
Plasma/DataEngine          plasma/dataengines/
Plasma/Generic             plasma/packages/
Plasma/Theme               plasma/desktoptheme/

KPackageTool6

╰─λ kpackagetool6 --list-types
Package types that are installable with this tool:
Built in:
KPackage Structure Name  Path
-----------------------  --------------------
KPackage/Generic         kpackage/packages/
KPackage/GenericQML      kpackage/genericqml/

Provided by plugins:
KPackage Structure Name    Path
-------------------------  --------------------------
KSysguard/SensorFace       ksysguard/sensorfaces/
KWin/Aurorae               aurorae/themes/
KWin/Decoration            kwin/decorations/
KWin/Effect                kwin/effects/
KWin/Script                kwin/scripts/
KWin/WindowSwitcher        kwin/tabbox/
Plasma/Applet              plasma/plasmoids/
Plasma/Comic               plasma/comics/
Plasma/ContainmentActions  plasma/containmentactions/
Plasma/Generic             plasma/packages/
Plasma/LayoutTemplate      plasma/layout-templates/
Plasma/LookAndFeel         plasma/look-and-feel/
Plasma/Shell               plasma/shells/
Plasma/Theme               plasma/desktoptheme/
Plasma/Wallpaper           plasma/wallpapers/
Wallpaper/Images

john-okeefe avatar Mar 13 '24 12:03 john-okeefe