Use emacs-sync-config script in hyprland extraConfig

This commit is contained in:
Evie Litherland-Smith 2024-02-15 09:01:19 +00:00
parent 769a16ef42
commit 104f2c8708

View file

@ -308,10 +308,15 @@
"SUPER, mouse:273, resizewindow" "SUPER, mouse:273, resizewindow"
]; ];
}; };
extraConfig = '' extraConfig = let
emacs-sync = let
name = "emacs-sync-config";
script = builtins.readFile ../scripts/emacs-sync-config.sh;
in "${pkgs.writeShellScriptBin name script}/bin/${name}";
in ''
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
exec-once = systemctl --user restart "xdg-desktop-portal*" exec-once = systemctl --user restart "xdg-desktop-portal*"
exec-once = ${pkgs.git}/bin/git -C ${config.home.homeDirectory}/.emacs pull --ff-only exec-once = ${emacs-sync}
''; '';
}; };
} }