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?
-
3Unfortunately, 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.– DeltikCommented Apr 28, 2015 at 11:47
-
It is possible editing its configuration file.– goetzCommented May 31, 2020 at 23:58
2 Answers
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)
- Window class (application): choose "Exact Match" from the drop down list, enter:
- 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)
- click OK
- 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.
-
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.)– user162573Commented Oct 17, 2016 at 11:19 -
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"
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.
-
2Where 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.– sandroidCommented 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 :)– goetzCommented Sep 5, 2020 at 2:34 -
-
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.– goetzCommented Mar 11, 2021 at 17:00
-