this post was submitted on 24 Feb 2025
14 points (100.0% liked)

KDE

5947 readers
107 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 2 years ago
MODERATORS
 

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.

top 4 comments
sorted by: hot top controversial new old
[–] Morphit@feddit.uk 1 points 6 hours ago (1 children)

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.

[–] IceFoxX@lemm.ee 1 points 5 hours ago* (last edited 5 hours ago)

System settings > Window management > Window rules: Set rules for a specific window (stuff like steam is tricky but works too) + "Add property" : add shortcut

[–] IceFoxX@lemm.ee 3 points 8 hours ago* (last edited 8 hours ago) (1 children)

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

[–] lemmeBe@sh.itjust.works 3 points 7 hours ago

Krohnkite! 🥁