You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the check will execute the following command:
gsettings get org.cinnamon.theme name
Which will depend on the selected Desktop Theme In the Mint Desktop environment.
Linux Mint Select Desktop Theme
Since I have not found a simple way to check if the desktop theme is in dark mode in KDE or Mint
without installing extra dependencies either on the system with a package (e.g., apt, dnf)
I was only able to retrieve the current system theme name by either reading a file or executing a command, the script will retrieve the theme name and see if it has dark in it (regardless of case) or if it's one of the known dark themes:
// List of known themesval knownDarkThemeNames =listOf(
"Mint-Y-Dark",
"Mint-Y-Dark-Aqua",
"Mint-Y-Dark-Blue",
"Mint-Y-Dark-Brown",
"Mint-Y-Dark-Grey",
"Mint-Y-Dark-Orange",
"Mint-Y-Dark-Pink",
"Mint-Y-Dark-Purple",
"Mint-Y-Dark-Red",
"Mint-Y-Dark-Sand",
"Cinnamon",
"Linux Mint",
)
This currently will have two issues:
If the installed theme is third-party and doesn't have dark in the name, the script won't be able to identify it as a dark theme, the same issue occurs on KDE Plasma.
The current command above retrieves the Desktop Theme which might not be the same as the list above, Mint allows the user to select a theme for the Window borders, Icons, Controls, Mouse Painter, Desktop.
The text was updated successfully, but these errors were encountered:
Currently, the check will execute the following command:
Which will depend on the selected Desktop Theme In the Mint Desktop environment.
Linux Mint Select Desktop Theme
Since I have not found a simple way to check if the desktop theme is in dark mode in KDE or Mint
without installing extra dependencies either on the system with a package (e.g.,
apt
,dnf
)I was only able to retrieve the current system theme name by either reading a file or executing a command, the script will retrieve the theme name and see if it has
dark
in it (regardless of case) or if it's one of the known dark themes:This currently will have two issues:
dark
in the name, the script won't be able to identify it as a dark theme, the same issue occurs on KDE Plasma.The text was updated successfully, but these errors were encountered: