diff --git a/home/home.nix b/home/home.nix index 1a8b4e5..56d1197 100644 --- a/home/home.nix +++ b/home/home.nix @@ -77,7 +77,7 @@ enable = true; defaultEditor = true; settings = { - theme = "adwaita-dark"; + theme = "adwaita-light"; editor = { lsp.display-messages = true; inline-diagnostics.cursor-line = "info"; @@ -160,6 +160,42 @@ videos = "${config.home.homeDirectory}/vid"; }; + # systemd.user.services.helix-theme = { + # Unit = { + # Description = "Helix System Colour Scheme Synchronisation Service"; + # Documentation = "https://github.com/helix-editor/helix/issues/2158"; + # After = "gnome-session.target"; + # }; + # Install.WantedBy = [ "gnome-session.target" ]; + # Service = { + # Type = "simple"; + # RestartSec = 5; + # Restart = "always"; + # ExecStart = + # let + # update-script = pkgs.writeShellScript "helix-theme-update" '' + # #!/bin/sh + # set -eu -o pipefail + + # if [ "$1" = "default" ]; then + # sed -i 's/theme = ".*"/theme = "adwaita-light"/' \ + # $HOME/.config/helix/config.toml + # else + # sed -i 's/theme = ".*"/theme = "adwaita-dark"/' \ + # $HOME/.config/helix/config.toml + # fi + + # killall -s SIGUSR1 hx + # ''; + # in + # "${pkgs.writeShellScript "helix-theme-monitor" '' + # #!/bin/sh + # gsettings monitor org.gnome.desktop.interface color-scheme \ + # | xargs -L1 bash -c "source ${update-script}" + # ''}"; + # }; + # }; + dconf.settings = { "org/gnome/TextEditor" = { keybindings = "vim";