14

I have just updated to Kubuntu 15.04 and can't find out how to change the position of krunner (the little search window that appears when I press Alt+F2) so that it appears in the center of the screen instead of at the top. Is this still possible? If yes, how can I change this?

2
  • 3
    Unfortunately, the feature that you're looking for was removed. There is a submitted change that restores the FreeFloating feature, but I don't know if it is implemented anywhere.
    – Deltik
    Apr 28, 2015 at 11:47
  • It is possible editing its configuration file.
    – goetzc
    May 31, 2020 at 23:58

2 Answers 2

16

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

2
  • In order to make it work: Window class (application): choose "Exact Match" from the drop down list, enter: krunner. In the answer it says: "enter: krunner krunner into the field". - Do you know a manual or something on the rest of possible settings (dimension e.g.)
    – user162573
    Oct 17, 2016 at 11:19
  • youtube.com/watch?v=g6kugmvsI_Q
    – Gelldur
    Feb 21, 2017 at 12:43
10

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

GUI method (since Plasma 5.20)

  • Open System Settings and search Krunner
  • Set the desired "Position on screen"

KDE System Settings for Krunner

Text method (since early Plasma 5)

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

[General]
FreeFloating=true

Then restart KRunner.

krunner --replace & disown

As @cipricus mentions in the comments, it is also possible to set other properties, like the font size, e.g.:

[General]
font=Noto Sans,12,-1,5,50,0,0,0,0,0

Every coma separated argument has a different meaning. The most relevant are the first and second ones, which is the Font family and the Point size.

8
  • 2
    Where are things like this documented? I ran into this trying to accomplish same as OP, and would love to see what else can be modified using config file. I've found an old reference to a krunnerrc global with no defs though, and it's from kde4, and no equivalent seems to exist in my install of Plasma 5.
    – sandroid
    May 30, 2020 at 17:11
  • 1
    @sandroid I don't know about any documentations, but you can look directly at the source: invent.kde.org/plasma/plasma-workspace/-/blob/… and search for other readEntry occurrences :)
    – goetzc
    Sep 5, 2020 at 2:34
  • not in Plasma 18
    – cipricus
    Mar 11, 2021 at 16:43
  • 1
    @cipricus For the GUI method you need Plasma 5.20+ and for the Text method, it works on pretty much any Plasma 5 version.
    – goetzc
    Mar 11, 2021 at 17:00
  • Also, the size can be changed in the same file, thus increasing the size of the whole window: here
    – cipricus
    Mar 11, 2021 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.