Use emacs-sync-config script in hyprland extraConfig
This commit is contained in:
parent
769a16ef42
commit
104f2c8708
|
@ -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}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue