This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE: Get the name of the current GLOBAL theme using CLI

Tags: None
(comma "," separated)
felis
Registered Member
Posts
2
Karma
0
I have been working on a custom tweaks app for plasma and would like to know how it is possible to return the currently applied Global Theme name from a CLI command (A command in the terminal). If so it is available in a configuration (RC) file, please guide me with its location. Thanks :)
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

You can use
Code: Select all
kreadconfig5 --group General --key Name
kreadconfig5 --key LookAndFeelPackage
kreadconfig5 --key ColorScheme
kreadconfig5 --key widgetStyle
for the Name.

or parse $XDG_CONFIG_HOME/kdeglobals for Name in [General], widgetStyle, ColorScheme, LookAndFeelPackage in [KDE].
felis
Registered Member
Posts
2
Karma
0
koffeinfriedhof wrote:Hi!

You can use
Code: Select all
kreadconfig5 --group General --key Name
kreadconfig5 --key LookAndFeelPackage
kreadconfig5 --key ColorScheme
kreadconfig5 --key widgetStyle
for the Name.

or parse $XDG_CONFIG_HOME/kdeglobals for Name in [General], widgetStyle, ColorScheme, LookAndFeelPackage in [KDE].


Thanks,
Code: Select all
kreadconfig5 --key LookAndFeelPackage
did work indeed


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]