fix (home/helix): default to light, no systemd service
This commit is contained in:
parent
a218f6d345
commit
27bd8bc532
1 changed files with 37 additions and 1 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "adwaita-dark";
|
theme = "adwaita-light";
|
||||||
editor = {
|
editor = {
|
||||||
lsp.display-messages = true;
|
lsp.display-messages = true;
|
||||||
inline-diagnostics.cursor-line = "info";
|
inline-diagnostics.cursor-line = "info";
|
||||||
|
|
@ -160,6 +160,42 @@
|
||||||
videos = "${config.home.homeDirectory}/vid";
|
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 = {
|
dconf.settings = {
|
||||||
"org/gnome/TextEditor" = {
|
"org/gnome/TextEditor" = {
|
||||||
keybindings = "vim";
|
keybindings = "vim";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue