this post was submitted on 30 Oct 2023
17 points (100.0% liked)
KDE
5336 readers
126 users here now
KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.
Plasma 6 Bugs
If you encounter a bug, proceed to https://bugs.kde.org/, check whether it has been reported.
If it hasn't, report it yourself.
PLEASE THINK CAREFULLY BEFORE POSTING HERE.
Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There is a way! I wrote this tool exactly for this purpose, and works on both x11/wayland: https://codeberg.org/tubbadu/ktoggle
once compiled and installed you can just assign to a hotkey the command
and you're done! read the readme to see an explanation of all available flags
(note: this is a work in progress, I have little time to maintain it, so don't expect it to be perfect!)
hope this helps!
What's the idea behind installing, uninstalling, reinstalling, uninstalling... all the time?
It was the best way I found to do it, because I couldn't find a proper way to run a kwin script with an argument (the program name and class), so I decided to just modify the script and then install and run it, and uninstall at the end. "Install" only takes a blink, although it may be made faster, for example implementing a sort of "caching" of the last used script in order to avoid removing and reinstalling the same script, perhaps one day I'll try to implement it. My first attempt at it was done using KWindowSystem api, but something didn't work so I had to give up and just install the scripts. perhaps I can try again with PlasmaWindowManagement, I may be luckier