Remove emacs-sync-config.sh
Go back to simple git command in hyprland extraConfig
This commit is contained in:
parent
c9b4393a29
commit
901fe1c661
|
@ -327,15 +327,10 @@
|
||||||
"SUPER, mouse:273, resizewindow"
|
"SUPER, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
extraConfig = let
|
extraConfig = ''
|
||||||
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 = ${emacs-sync}
|
exec-once = ${pkgs.git}/bin/git -C ${config.xdg.configHome}/emacs pull --ff-only
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.writeShellScriptBin "git-sync-all"
|
(pkgs.writeShellScriptBin "git-sync-all"
|
||||||
(builtins.readFile ./git-sync-all.sh))
|
(builtins.readFile ./git-sync-all.sh))
|
||||||
(pkgs.writeShellScriptBin "emacs-sync-config"
|
|
||||||
(builtins.readFile ./emacs-sync-config.sh))
|
|
||||||
(pkgs.writeShellScriptBin "rsync-local-config"
|
(pkgs.writeShellScriptBin "rsync-local-config"
|
||||||
(builtins.readFile ./rsync-local-config.sh))
|
(builtins.readFile ./rsync-local-config.sh))
|
||||||
(pkgs.writeShellScriptBin "xdg-query-program"
|
(pkgs.writeShellScriptBin "xdg-query-program"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
EMACS_DIR="$HOME/.emacs.d"
|
|
||||||
EMACS_CONF_URL="https://git.xenia.me.uk/xenia/emacs"
|
|
||||||
|
|
||||||
if [ ! -d "$EMACS_DIR" ]; then
|
|
||||||
git clone "$EMACS_CONF_URL" "$EMACS_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
git -C "$EMACS_DIR" pull --ff-only
|
|
Loading…
Reference in a new issue