Change Plasma Theme sudo/root applications use

Copy your local config files to /root/ (this is the relevant user folder for root/sudo user).
Depending on program’s toolkit, you need to copy (at least) these:

$HOME/.gtkrc-2.0
$HOME/.config/gtk-3.0/settings.ini
$HOME/.config/gtk-4.0/settings.ini
$HOME/.config/plasmarc
$HOME/.config/qt5ct/qt5ct.conf
$HOME/.config/Kvantum/kvantum.kvconfig

Important!
Make sure the settings do not include locally installed themes, only system themes (at /usr/share).

A good practice would be to set a different root theme than normal user’s, so it is immediately realized it has elevated privileges.

1 Like