4 ms·
Is there a way to move Plasma windows around with the keyboard? I would love to be able to move the current window around with - say - ctrl+meta+uparrow or som
by mg 4y ago
Is there a way to move Plasma windows around with the keyboard?
I would love to be able to move the current window around with - say - ctrl+meta+uparrow or something.
I dabbled with KWin scripts and successfully got one working which centers the current window:
https://github.com/no-gravity/kwin-move-window-to-center https://github.com/no-gravity/kwin-move-window-to-center
Now I couldn't live without this script anymore!
But somehow I was never able to reproduce it for a second script. Everytime I try to make a copy of this one, modify it and add a shortcut - it does not work.
Maybe there is a much easier solution, just using desktop agnostic linux commands?
- slipgate55 4y agoDefinitely. You can set tiling shortcuts in system settings. Personally, I use my numpad so that e.g. meta + num7 tiles to the top-left. You can also move windows from monitor to monitor that way.
- mg 4y agoYes, I already use shortcuts to tile windows and move them between desktops. But this is about a different task: I want to move the current window 10px up when I press ctrl+meta+uparrow.
- alxlaz 4y agoIf you're on X11, you should be able to use xdotool, which doesn't depend on KDE doing anything in particular. No idea what the equivalent is if you're on Wayland.
- qiqitori 4y agoYou can do Alt+F3 ↓ ↓ ↓ → enter and then move the window using cursors keys (and hit enter to apply the window position) You can also assign a shortcut to get to this point (in Shortcuts -> Global Shortcuts -> System Settings -> Move Window). I don't think you can get what you're asking for without writing a tiny script and setting it to be invoked with your keyboard shortcut.
- mg 4y agoWhile it works, the problem with "Alt+F3 ↓ ↓ ↓ →" is that when I move the window afterwards, the cursor keys get passed through to the window. So when I do that on Firefox, the website scrolls up and down. When I do it on a terminal, it invokes my bash history.
- ankurdhama 4y agoTry the arrow key(s) (after selecting resize in window menu) while pressing down Super key.
- mg 4y agoWhich one is the "Super Key"? If it is the window key - that one in combination with the arrows is already mapped to tiling functions. Window+UP makes the current window take half of the screen on the upper side.
- ankurdhama 4y agoOh sorry, use shift key + arrow keys. Not the super key.