TLDR: I want to be able to set specific window sizes and positions of the current window with hotkeys, as well as focus on specific apps with hotkeys.
I’ve made posts like this elsewhere as I’ve lately been really trying to figure out Linux. Anyway, right now KDE is very appealing since its very customizable and has a plugin to recreate Window 11’s Mica effect.
First, I want an alternative to Rectangle Pro app on Mac, which let’s you set many hotketys for changing the current window’s size & position: like use up the left or right halves or thirds of the screen, or corners and taking up a quarter of the screen. You can also make custom window layouts and bind those to keys. I’ve been told to use a WM like Sway, but then I’d have to make my own DE from scratch.
Second, I want to focus on specifc apps with hotkeys. For instance, I’d want to press CTRL Shift Z
to switch specifically to Zen Browser or open it if it isn’t opened, and CTRL Shift O
to open or switch to Obsidian. I only found two solutions for Linux (wmctrl
and wlrctl
), and none for KDE.
KDE can focus apps with a key-bind natively - in the Window Rules settings (even easier if you open the context menu on a window and go to More Actions > Configure Special Application Settings…). So I have Meta+Enter mapped to focus a terminal etc.
I don’t know of a simple way to both open and focus with the same key-bind. KDE doesn’t seem to have implemented ext-foreign-toplevel-list so I don’t think external window management tools can do this yet.
System settings > Window management > Window rules: Set rules for a specific window (stuff like steam is tricky but works too) + “Add property” : add shortcut
Systemsettings > Windows management > kwin-scripts > get New modules. Look for krohnkite, polarium etc. Maybe there is something you looking for.
If you install krohnkite or something like that you have to search for the respective entries under systemsettings > keyboard > hotkeys > kwin and assign hotkeys to them
Krohnkite! 🥁