KDE 5 had a feature in the keyboard shortcuts in settings where you could set a Window Action as a trigger instead of a keyboard shortcut (Documentation in the link). This means that KDE would do something every time a certain window appeared. This was very useful, my use case was changing the TeamViewer authorization prompt to NT logon as I don't use the normal TeamViewer password. I think there should be a workaround if it's truly gone, but for the life of me I can't remember or search for the name of this software that does something every time a certain window is created.
Where did the "Window Action" feature go?
https://docs.kde.org/stable5/en/khotkeys/kcontrol/khotkeys/khotkeys.pdf
5 Comments
Bro666@lemmy.kde.social · 4 pts · 2y
I was not aware of this feature, but it sounds very useful. Why don't you submit a request to reinstate it to https://bugs.kde.org ?
JTskulk@lemmy.world · 2 pts · 2y
I did a workaround by editing a script I found and don't understand using xprop, xwininfo, and xdotool. I probably should have mentioned that I'm using X, most of this stuff doesn't work on Wayland. Here's my script so far:
It spits out errors after the window closes because I think it's trying to get windows properties from the now closed window, but it gets the job done!
Edit: changed the script to be much smaller and not show errors.
minecraftchest1@social.opendesktop.org · 1 pts · 2y
@JTskulk
Put it in a pastebin please. The spacing is all messed up, requiring lots of work to fix.
JTskulk@lemmy.world · 1 pts · 2y
The spacing looks fine here, I copied and pasted it into Kate and it worked fine, maybe you're on a phone or something. Here's a link to my latest version:
JTskulk@lemmy.world · 1 pts · 2y
DevilsPie is the name of the software I couldn't remember.