MyNixOS website logo
option

services.darkman.darkModeScripts

Scripts to run when switching to "dark mode".

Multiline strings are interpreted as Bash shell scripts and a shebang is not required.

Declarations
Type
attribute set of (path or strings concatenated with "\n")
Default
{ }
Example
{
  gtk-theme = ''
    ${pkgs.dconf}/bin/dconf write \
        /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
  '';
  my-python-script = pkgs.writers.writePython3 "my-python-script" { } ''
    print('Do something!')
  '';
}