How to export a Global Theme?

As you can see, there is no “Save As” button to export my global theme in an easily swappable and shareable format.

The KDE Wiki page Plasma/Create a Global Theme Package - KDE UserBase Wiki says to use the Plasma Look And Feel Explorer, which doesn’t exist in Plasma 6.

I know konsave exists as a command-line tool, but it exports the settings in its own format rather than something Plasma Settings is able to read. Therefore, konsave expects you to switch themes using a CLI, which is not practical for the people who will be using my configuration.

I want to export my current Plasma configuration (EVERYTHING from cursors, icons, applet/plasmoid settings, et cetera) into a .js file under ~/.local/share/plasma/look-and-feel/MY-THEME/contents/layouts/ such that my theme will show up in the Global Themes on Plasma Settings—is there a way to do this on Plasma 6?

I’ve just figured it out! It’s a crying shame that this functionality isn’t simply part of Plasma Settings, but here is what you do:

  • STEP 1. Install plasma-sdk package

This will install the Plasma Global Theme Explorer for us.

  • STEP 2. Launch the Plasma Global Theme Explorer

If plasma-sdk’s maintainers in your distribution have neglected to create a .desktop file for this program (cough cough Debian), you may launch it by entering lookandfeelexplorer into the terminal.

  • STEP 3. Click on the hamburger menu on the bottom left

That’s the 3 horizontal lines stacked top-to-bottom.

  • STEP 4. Click “New Theme…”
  • STEP 5. Fill out all the fields and hit OK

And I mean all the fields; the OK button will be greyed out until you do so.

…and you’re done! This should save all your Plasma configurations as a Global Theme under ~/.local/share/plasma/look-and-feel/!

1 Like