How can I change the screen position of krunner in KDE Plasma 5.x?

I was able to use this workaround in kubuntu 16.04: I created a special Window Rule for the krunner window to enforce a certain screen position.

Details: In the system settings application, goto Workspace, Window Management, Window Rules

  • create a new Window rule:
    • Window class (application): choose "Exact Match" from the drop down list, enter: krunner into the field (or use the Detect Window Properties button)

enter image description here

  • on the second tab Size & Position:
    • check the first box Position
    • choose "Apply Initially"
    • enter some numbers into the field: I entered 570,400 for about the middle of my screen (that may vary depending on the display)

enter image description here

  • click OK

enter image description here

  • click Apply

Anyway, this window is meant to be placed in the upper part of the screen - if set too close to the bottom, it will jump upward when the list of findings is long enough.

enter image description here


This can be done on KDE Plasma 5, without special KWin (or any WM) rules.

GUI method

Open System Settings and search Krunner: KDE System Settings for Krunner

Text method

Edit ~/.config/krunnerrc and make sure that FreeFloating is set to true.

[General]
FreeFloating=true

Then restart KRunner.

krunner --replace & disown