Change root colors for plasma

I’m using breeze-dark theme and had the issue that when I opened dolphin in “Super-user-mode” I had white text on white background. To fix this, I first wanted to start the systemsettings in the terminal after “su”-login and change the color-theme. But then I googled a bit and found out that the best way to do it is with pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-run-session systemsettings This worked regarding the color scheme after I changed it to “Breeze-dark”, but then the font size in the root windows became smaller. I then realized that the display settings under root look slightly different than for the normal user. I have two different monitors with different resolutions (4k and wqhd), and use fractional scaling so that everything is the same size on both monitors. When I run the system settings as root, I can only set the same scaling for both monitors. I then set both to 4k and 150%, and then (interestingly) had the same sizes and scaling as the normal user. Although everything is now as desired, I wonder if it was a good idea to run systemsettings as root? Can this cause other problems? Should I better just have copied certain config-files from user to root?

Try using qt6ct as root, then use it to configure.
Edit: never mind I didn’t read the bottom of your post about the display resolution
problem.

I will try tomorrow, thanks!

Hi, the theming and font can be configured using qt6ct but the resolution between your two different display is not. You might need to configure it on your graphic card,

1 Like

I now found the reason for the different display settings when opening systemsettings as root. When started as root systemsettings (and so probably all root windows, including yast!?) are using X11 instead of wayland, although the plasma (user-)session was started with wayland!

How can I change the root session to wayland, or is that not recommended (for whatever reason)?

Never log into any GUI as root things ca break

@Micha wrote:

That’s NOT JUST because of the root user, … all other users on your system (pretend there are other user accounts) will (may) not use what you’re using.

That’s NOT JUST because of the root user, … all other users on your system (pretend there are other user accounts) will (may) not use what you’re using.

I would have just assumed that the root window automatically uses the same display-protocol as the user who called it!

Never log into any GUI as root things ca break

If this were a general rule, then there wouldn’t be the Dolphin feature to open a folder as root!

Root is a separate user, so the view likely follows the default theme from that user session. If you really want to change it, then login as root and change your global theme settings. It is easy to break things as root, so use at your own risk, but you should be fine just clicking around in Plasma settings theme options.

…login as root and change your global theme settings

I already did that (changed the theme to “breeze-dark”), but with systemsettings I can’t change from “x11” to “wayland” (or am I wrong?)!

Logging into a desktop is NOT the same thing as as running GUI apps as root. A desktop touches many files and can change ownership to root which can break things when running under user

YOU HAVE BEEN WARNED!!!

I thought that it was not possible to log into Plasma as root, but only to run individual gui-programs as root using “pkexec”! Even if this is possible, I would like to avoid this, as many programs run as root then, which is too risky. Basically I just want to know in which configuration file I have to change something to change the root session from “x11” to “wayland”!

Maybe this thread has gotten too long already, so I add my intention for the “x11” → “wayland” change again: I want that the “yast”- and “dolphin”(in super user mode)-windows use “wayland” instead of “x11” for reasons of consistency! The other (real) issue, white text on white background in dolphin in super-user-mode, has been solved (s. above)!