darkman
Darkman is a daemon which runs user-defined scripts depending on the time of day.
dbusserver: true usegeoclue: true lat: 36.8 lng: 10.1
Every code block in this document is contained in its own unique file, we can therefore consider them fully-fledged scripts.
- Code blocks underneath "Dark" sections are located in
$XDG_DATA_HOME/dark-mode.d
and have the executable bit set. - Code blocks underneath "Light" sections are located in
$XDG_DATA_HOME/light-mode.d
and also have the executable bit set.
Although it may not be apparent, every one of these scripts does indeed begin with a shebang.
1. Light
1.1. GTK 4
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
1.2. GTK 3
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
2. Dark
2.1. GTK 4
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
2.2. GTK 3
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'