Darkman¶
A framework for dark-mode and light-mode transitions on Unix-like desktops.
- https://gitlab.com/WhyNotHugo/darkman/
At sundown, it will look for scripts in $XDG_DATA_DIRS/dark-mode.d/. At sunrise, it will look for scripts in $XDG_DATA_DIRS/light-mode.d/.
Install¶
Fedora¶
Ubuntu¶
sudo apt install -y golang scdoc
git clone https://gitlab.com/WhyNotHugo/darkman.git
cd darkman
make
sudo make install PREFIX=/usr
Setup¶
Configure¶
Enable location services (Gnome Settings on fedora)
Scripts to run for light and dark
- example files in the repo
- Can be saved in any
$XDG_DATA_DIRS
Example dark for Gnome:
Config (optional)¶
Custom executables¶
For additional application support, custom executables (including simple shell scripts) can be placed in the following two directories:
•$XDG_DATA_DIRS/dark-mode.d/: Scripts to run when switching to dark mode.
•$XDG_DATA_DIRS/light-mode.d/: Scripts to run when switching to light mode.