Repository navigation
Conversation
|
resolves #6 |
|
I think this is really clever! But I'm a bit concerned about doing source THEME.conf. We've been moving away from doing that with the theme installer, such that we're not exposing everyone to running random code when they install a theme from the internet. Maybe @npenza has some ideas here on what we could do instead? Maybe this is finally pushing us towards the idea of having a theme.toml file? Where we can specify everything from these theme ENVs to possible extra fonts or backgrounds that need to be downloaded from the internet. |
|
I can take a look at @npenza's PR and see how can we do another approach |
|
@al3rez Really nice work with this one. Having a light mode will allow for a wider variety of themes from the community, and I think it'll be a great addition to Omarchy. I agree that we should not run random code for theme installations. Directly sourcing a configuration file (like a source THEME.conf) poses security risks. I think a structured data solution is needed, and the responsibility of downloading fonts or backgrounds the theme requires, is delegated to the @dhh Agreed. I think a # General theme information
[theme]
name = "Rose Pine"
variant = "light" # or "dark"
# GTK settings
[gtk]
theme = "RosePine-Light-GTK"
color_scheme = "default" # or "prefer-light", "prefer-dark"
# Icon and Cursor settings
[icons]
theme = "Adwaita"
cursor_theme = "Adwaita"
# Optional: Font settings
[fonts]
monospace = "JetBrains Mono Nerd Font 10"
sans_serif = "Inter 10"
# Optional: Backgrounds
[[background]] # First background entry
url = "https://unsplash.com/images/rose-pine-light.png"
[[background]] # Another background entry
url = "https://unsplash.com/images/rose-pine-light-2.png"
[[background]] # A third background entry
url = "https://unsplash.com/images/rose-pine-light-3.png"
# Optional: Environment variables specific to this theme
[env]
GTK_THEME_VARIANT = "light"The
I think |
0e82db2 to
d9624ef
Compare
- Add support for light themes (Rose Pine as first light theme) - Migrate from theme.conf to theme.toml format - Use tomlq (from yq package) for TOML parsing - Add secure theme resource installation script - Update desktop files with theme-specific GTK settings - Add comprehensive tests using bats Breaking changes: - Removed theme.conf support (only theme.toml) - Requires yq package for TOML parsing
|
Really appreciate you doing this big exploration. I thought this was where I wanted to see us end up, but seeing it all come together, I think it's too complicated. This does more, but I really want Omarchy to do less. So going with this simple flip switch with |

I've successfully made Omarchy's theme system configurable to support light themes like Rose Pine. Here's what I implemented:
Theme Configuration System: Created theme.conf files for each theme containing:
- variant (light/dark)
- gtk_theme (e.g., Adwaita or Adwaita-dark)
- gtk_color_scheme (prefer-dark or default)
- Icon and cursor theme settings
Updated omarchy-theme-next: Now reads theme.conf and applies:
- GTK theme settings via gsettings
- Creates theme.env file for runtime use
- Updates desktop files automatically
Created Helper Scripts:
- omarchy-launch-themed: Launches apps with correct GTK_THEME
- omarchy-update-desktop-files: Generates theme-aware desktop files
Updated Configuration Files:
- Waybar config now uses omarchy-launch-themed
- Desktop files use the launcher script
- install/theme.sh applies theme settings from config
Added Rose Pine Example: Created a skeleton Rose Pine theme with light variant settings
The system is now fully theme-aware and will switch between light and dark modes based on each theme's configuration when using
omarchy-theme-next.