/u/Da_Viper on Reddit recently asked how to change the plasma icon theme from bash. He’d figured out that
[Icons] Theme=breeze in
~/.config/kdeglobals changes when you select an icon theme. However modifying that file doesn’t update running applications until you restart.
If we dive into the code for the System Settings KCM on the GitHub mirror, we can see that a new file,
changeicons.cpp, was recently added 6 months ago. Looking at the
CMakeLists.txt, that file is used for a new terminal command called
plasma-changeicons. It’s not in
$PATH however, so we’ll need to call the full filepath.
locate plasma-changeicons to find the filepath. For me in Manjaro with Plasma 5.18, it’s
Now that we know the filepath, we can use the folder names found at
~/.local/share/icons/ as arguments for the command.
Breaking down the code,
changeicons.cpp, which in turn will call a function in
- Notify the change to all KIconLoaders using DBus.