@whynothugo @nikitonsky for Plasma you might be able to use a KWin plugin