aspauldingcode / .dotfiles

A Universal .dotfiles Configuration with Nix Flakes - over-engineered by Alex Spaulding.
2 stars 0 forks source link

Darkmode/Lightmode functionality #27

Open aspauldingcode opened 10 months ago

aspauldingcode commented 10 months ago

Darkmode/Lightmode functionality

Problem: Detecting system-wide theme as dark/light is not going so well on NixOS. In addtion, my themes are defined through nix-colors, so switching the color-scheme is essential to work universally across all my applications, including:

Tasks:

aspauldingcode commented 4 months ago

What a hot mess.

aspauldingcode commented 3 weeks ago

macOS (NIXY) is successfully changing configuration of macOS system darkmode to light if the theme variant is lightmode from nix-colors.

Using nix specialization, I could create a toggle-theme to switch between a specified darkmode and lightmode colorscheme with nix colors (eg. gruvbox-soft-dark and gruvbox-soft-light).

To get this working on NixOS might be trivial from here.