all repos — nixfiles @ e3e5ea193168a53761131e73b1cf261692b11edd

System and user configuration, managed by nix and home-manager

darwin: remove dark-light-mode service New emacs switching logic is in theme.nix, which will work even if multiple instances are open

Alin
commit

e3e5ea193168a53761131e73b1cf261692b11edd

parent

83e53bc636a0871060fd5232ff43771bc83c6e7b

1 file changed, 0 insertions(+), 27 deletions(-)

changed files
M user/settings/darwin.nix → user/settings/darwin.nix
@@ -80,33 +80,6 @@ StandardErrorPath = "/dev/null";
StandardOutputPath = "/dev/null"; }; }; - dark-light-mode = { - enable = true; - config = { - WatchPaths = [ "${config.home.homeDirectory}/Library/Preferences/.GlobalPreferences.plist" ]; - StandardOutputPath = "/dev/null"; - StandardErrorPath = "/dev/null"; - RunAtLoad = true; - KeepAlive = false; - ProgramArguments = [ - "/bin/sh" - (toString ( - pkgs.writeShellScript "toggle-dark-light-mode" '' - wait4path /nix - if defaults read -g AppleInterfaceStyle &>/dev/null ; then - MODE="dark" - else - MODE="light" - fi - emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient" - if pgrep -q Emacs; then - $emacsclient --eval "(my/switch-theme-variant '$MODE)" - fi - '' - )) - ]; - }; - }; set-terminal-theme = { enable = true; config = {