From d683a0698a54c093f27cfca0c831880d18c0efe8 Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 23 Jun 2023 14:53:33 +0800 Subject: [PATCH] update --- home/.chezmoi.toml.tmpl | 4 ++++ home/.chezmoiignore.tmpl | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index fce2fdd..2e31269 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -27,6 +27,10 @@ {{- $installRust := promptBoolOnce . "installRust" "install rust bin" true -}} {{- $enableTmux := promptBoolOnce . "enableTmux" "install enable tmux autostart" true -}} {{- $enableSSHAgent := promptBoolOnce . "enableSSHAgent" "install enable ssh agent autostart" true -}} +{{- $enableUI := promptBoolOnce . "enableUI" "install enable ui" true -}} + +[data.ui] + enable = {{ $enableUI }} [data.shell] tmux = {{ $enableTmux }} diff --git a/home/.chezmoiignore.tmpl b/home/.chezmoiignore.tmpl index 83f25c9..6d91410 100644 --- a/home/.chezmoiignore.tmpl +++ b/home/.chezmoiignore.tmpl @@ -1,5 +1,19 @@ # ignore template {{- if not .shell.tmux }} -.tmix.conf +.tmux.conf +{{- end }} + +{{- if not .ui.enable }} +.pam_environment +.config/alacrtty/ +.config/environment.d/ +.config/hypr/ +.config/mako/ +.config/sway/ +.config/swaylock/ +.config/systemd/ +.config/waybar/ +.config/wofi/ +.config/xdg-desktop-portal-wlr/ {{- end }}