https://github.com/niclasvaneyk/dark-mode-daemon
😈 Run scripts when the system color scheme changes between light and dark.
https://github.com/niclasvaneyk/dark-mode-daemon
dark-mode shell-scripting terminal
Last synced: 26 days ago
JSON representation
😈 Run scripts when the system color scheme changes between light and dark.
- Host: GitHub
- URL: https://github.com/niclasvaneyk/dark-mode-daemon
- Owner: NiclasvanEyk
- Created: 2024-02-28T20:29:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-15T11:57:50.000Z (7 months ago)
- Last Synced: 2025-11-15T13:22:15.608Z (7 months ago)
- Topics: dark-mode, shell-scripting, terminal
- Language: Rust
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dark Mode Daemon
Run scripts when the system color scheme changes between light and dark.
## Getting Started
The easiest way is to download and run the official installation script
```shell
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/niclasvaneyk/dark-mode-daemon/releases/latest/download/dark-mode-daemon-installer.sh | sh
```
Then you can run the watch process by running
```
dark-mode-daemon
```
This won't do much, since you probably haven't set up any scripts yet.
Dark Mode Daemon runs every executable file in `~/.config/dark-mode-daemon/scripts/` and sets the `DMD_COLOR_MODE` environment variable to either `light` or `dark`.
This lets you adjust configuration files, other environment variables, or whatever else you can come up with.
Head over to the [list of recipes](./docs/recipes.md) for inspiration.
Examples include adding automatic color adjustments for [Alacritty](./docs/recipes.md#alacritty), [Helix](./docs/recipes.md#helix), [Fish](./docs/recipes.md#fish), and more.
You likely want to have Dark Mode Daemon launch in the background when you log into your user.
There are many solutions to this, but we've prepared a builtin solution that should work for most platforms
```
dark-mode-daemon autostart setup
```
If you are interested in how this or the color mode detection works, have a look at our [behind the scenes documentation](./docs/how-it-works.md).