nclarius / KWin-window-geometry-scripts

KWin scripts to control window geometry via keyboard shortcuts
GNU General Public License v3.0
19 stars 2 forks source link

Plasma 6 #4

Open john-okeefe opened 4 months ago

john-okeefe commented 4 months ago

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.

nclarius commented 4 months ago

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.

john-okeefe commented 4 months ago

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.

nclarius commented 4 months ago

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?

john-okeefe commented 3 months ago

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

john-okeefe commented 3 months ago

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 commented 3 months ago

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