The unexpected hurdles of KWin scripting

Recently, I've been setting up Linux on my main machine, defaulting to KDE as it feels like it requires the fewest changes to suit my workflow. Having relied on AHK for "quake mode" persistent apps for years, I knew I'd need similar functionality on Linux. Kwin scripts seemed like an obvious choice, and I expected the code to be simpler than AHK thanks to the saner syntax of JavaScript.…