Registered Member
|
Hello!
I'm trying to customize my KDE window management. I'd like some advice on what I can do, including any 3rd party utilities or plugins. Ideally, this won't end up with me having to spend a lot of developer time on the issue. I've got separate focus enabled. I'd like to disconnect the monitors such that the mouse cannot go between them or windows cannot be dragged - instead, i'd like to have a keyboard shortcut to toggle between them and to send windows between them. On my second monitor, i usually just put one program on the left and one on the right using those keyboard commands. Is there a way I could jump to "whatever program is occupying the left half of monitor 2" with a keyboard command? Thanks, --Murph |
|
The mouse either can cross the screens or the windows cannot be passed across them. You can forget about that direction.
To enforce a window to remain on a certain screen, setup a rule for it ("kcmshell4 kwinrules", supported since 4.10) but that will not allow you to manipulate them by shortcut either. You could either setup a (bash) script to alter the rule (including kreadconfig/kwriteconfig) and call "qdbus org.kde.kwin /KWin reconfigure" to update it. Then bind that script to some shortcut in "kcmshell4 hotkeys". Biggest issue will be to map the current window to the matching rule. The other way would be to add a kwin script that hooks on clientFinishUserMovedResized(), checks the position and moves back the client if it's now on another screen. This would not affect shortcut invocation to send the client to another screen. It would also be possible to write a kwin script that reacts on a shortcut, checks the geometry of all windows and when it finds one with a certain one, activate it. See http://techbase.kde.org/Development/Tut ... ng/API_4.9 |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar