Skip to main content
Share Your Experience: Take the 2024 Developer Survey
22 votes
Accepted

Disabling KWin compositor from command-line

To disable compositing: qdbus org.kde.KWin /Compositor suspend To enable compositing qdbus org.kde.KWin /Compositor resume
Artem S. Tashkinov's user avatar
8 votes
Accepted

How do I run a KWin script from the console (to set focus to a specific window in KDE)?

After far more trial and error than I would have liked, it seems it is possible to run a string containing a script directly by communicating with plasmashell, as in the following example (which ...
user2483412's user avatar
7 votes

How can I run a kwin script from the command line?

This is what I had to do in 2022 to get this to work script="/path/to/script" num=$(dbus-send --print-reply --dest=org.kde.KWin \ /Scripting org.kde.kwin.Scripting.loadScript \ ...
user272901's user avatar
7 votes

Disabling KWin compositor from command-line

Shift + Alt + F12 is the droid you are looking for.
Meshuggah 333's user avatar
6 votes

How do I run a KWin script from the console (to set focus to a specific window in KDE)?

After all that trouble I found an alternative way to set focus (Set focus to newly open window): wmctrl -i -a $(wmctrl -l | grep "\- Oracle VM VirtualBox" | tail -n 1 | cut -d ' ' -f1) Still ...
JKAbrams's user avatar
  • 243
5 votes

How to disable /etc/xdg/{something}?

1. Create a ~/.config/autostart directory. 2. Copy /etc/autostart/entry to ~/.config/autostart/entry. 3. Add Hidden=true to ~/.config/autostart/entry. E. g. # ~/.config/autostart/picom.desktop [...
Shamaoke's user avatar
  • 201
4 votes
Accepted

Script/keyboard shortcut to minimize all other windows

I am not sure why your script did not work, maybe windowactivate executes before the previous command manages to minimize all windows? Here is a bash script that might work for you: #!/bin/bash ...
Igor's user avatar
  • 56
4 votes

Show the window size while resizing

If you're on X.org: System Settings -> Window Behavior -> Movement -> Display geometry when moving or resizing If you're under Wayland: https://bugs.kde.org/show_bug.cgi?id=443723
Artem S. Tashkinov's user avatar
3 votes
Accepted

Is there a way to get list of windows on KDE Wayland?

Yes, it is possible. The idea is to ask kwin for this information. It is done via kwin script. It can only communicate the world with dbus, so we cannot run shell commands in kwin scripts (at least ...
Ashark's user avatar
  • 959
3 votes

Show the window size while resizing

It looks like recently this topic has been discussed in the KDE community, and currently while waiting for it to be pushed to the mainstream, you can get it in the KDE store for the time being. Here ...
FormBurden's user avatar
3 votes
Accepted

How to get KWin-like window snapping in Xfce?

Follow the GUI menu, Settings manager -> Window Manager and at the Advanced tab, you will have the option to check Windows snapping -> to other windows together with a bar to adjust the snapping....
thanasisp's user avatar
  • 8,192
3 votes

Title bar disappears when windows are maximized in KDE

The problem was that I messed around with active window control and checked the hide title bar option then uninstalled it and the setting perdured. I reinstalled it and unchecked the option. Feels ...
Andreu Heisenberg's user avatar
2 votes

Kubuntu Alt+Tab Task Switcher ignores its own setting & refuses to page through in reverse

It looks like the reason is that Alt+Shift+Tab translates to Alt+Shift which switches the keyboard layout and consecutive Alt+Tab which traverses the opened applications in the non-reversed order. I ...
egelev's user avatar
  • 121
2 votes

manjaro lxqt kwin desktop switch hotkeys

I have encountered the same issue with lxqt on Lubuntu. There the Ctrl+Alt+Left/Right hotkeys works correctly but in Ubuntu I used to change it to another hotkeys pair. So I have spent time seeking ...
egvo's user avatar
  • 121
2 votes

Trick a window that it has focus in kde

As far as I know it is not possible to have multiple focus. You could try one of these solutions: play the game inside a VM and see it remotely play the game inside a vncserver and see it remotely (...
Eduardo Trápani's user avatar
2 votes
Accepted

Shortcut to show a window on all virtual desktops in KDE Plasma

It possibly depends on the version of KDE-Plasma you are using. On mine (5.25.5), System Settings -> Shortcuts -> KWin is indeed the right place for finding that shortcut which is labeled : Keep ...
MC68020's user avatar
  • 8,211
1 vote
Accepted

Why do parts of my windows blank out in KDE?

Versions of kwin (KDE-Plasma screen compositor) < 5.21 offer a suboptimal way to sync on VBlank this leading to screen tearing and miscellaneous other inconveniences depending on the graphical ...
MC68020's user avatar
  • 8,211
1 vote
Accepted

How to run KWin script on startup, and what is installed script for if its not run at startup

Make sure you have not only installed but also enabled the script: System Settings > Window Management > KWin Scripts > check the checkbox for the script > Apply or kwriteconfig5 --file ...
Natalie Clarius's user avatar
1 vote

Trick a window that it has focus in kde

Another idea which could be the only solution in the long run. As David Edmundson said in #439483 bug report, the nested wayland could be used. It seems it supports gpu acceleration. The keyboard ...
Ashark's user avatar
  • 959
1 vote

Trick a window that it has focus in kde

This isn't the solution you were looking for, but a way around it is to change the setting for mouse focus in System Settings->Workspace->Window Management->Window Behavior->Focus->...
nate_the_adequate's user avatar
1 vote

KDE 5: How to achieve "new windows follow mouse" behavior on a dual screen setup

In short: if you are using x11 session, make sure your app does not break placement behavior. And when it does, create rule to ignore requested geometry. Some applications have their own thinking of ...
Ashark's user avatar
  • 959
1 vote

Kubuntu Alt+Tab Task Switcher ignores its own setting & refuses to page through in reverse

It's indeed considered a somewhat "bug"-ish, yet it also depends on the perspective... Meanwhile, however, just in case, have you tried: CtrlAltTab instead of AltShiftTab? It may be a ...
Artfaith's user avatar
  • 474
1 vote
Accepted

Kubuntu Alt+Tab Task Switcher ignores its own setting & refuses to page through in reverse

Any suggestions for a fix or where exactly I should direct a bug report? Bugs can be filed here. I actually find people there quite unresponsive. The forum, however, is very helpful, if you get no ...
Sparhawk's user avatar
  • 20k
1 vote

What commands are needed in the '~/.vnc/xstartup' file to run KDE Plasma 5 in VNC?

In order to launch a plasma desktop over VNC, use the following command : dbus-launch startplasma-x11 # or startplasma-wayland
Ludovic Ronsin's user avatar
1 vote

What commands are needed in the '~/.vnc/xstartup' file to run KDE Plasma 5 in VNC?

What I discovered in attempting to do this is that the Plasma DE is much to heavy to run over vnc. When I installed LXDE and used startlxde in the xstartup file, I got a good desktop that ran ...
Forbin117's user avatar
1 vote

How to restore display of window after unplugging and replugging 2nd monitor?

You can save the current position of windows with: wmctrl -lG > ~/.windowlistrc You can restore them with: rcfile=~/.windowlistrc while read row; do IFS=" " read id g x y w h _ <&...
mankoff's user avatar
  • 285
1 vote

How can I run a kwin script from the command line?

I also gave an answer updated for May 2024 for the Python version of this in this question about listing windows in KDE Wayland. The main thing that needs to change is the path to the script object, ...
Scott Morse's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible