From 98072299f5d2943dca2876f3c7ccc4d71ad9ac52 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 13 May 2022 23:14:27 +0200 Subject: [PATCH] [GNOME] Begin add autoinstall --- .chezmoitemplates/gnome_after | 1 + .chezmoitemplates/gnome_before | 2 ++ run_once_prepare_arch.sh.tmpl | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .chezmoitemplates/gnome_after diff --git a/.chezmoitemplates/gnome_after b/.chezmoitemplates/gnome_after new file mode 100644 index 0000000..1a34245 --- /dev/null +++ b/.chezmoitemplates/gnome_after @@ -0,0 +1 @@ +sudo systemctl enable --now gdm.service \ No newline at end of file diff --git a/.chezmoitemplates/gnome_before b/.chezmoitemplates/gnome_before index e69de29..f14390b 100644 --- a/.chezmoitemplates/gnome_before +++ b/.chezmoitemplates/gnome_before @@ -0,0 +1,2 @@ +# All requirements for gnome +packages+=(gnome gnome-tweaks) \ No newline at end of file diff --git a/run_once_prepare_arch.sh.tmpl b/run_once_prepare_arch.sh.tmpl index d2e4c59..a5433fc 100644 --- a/run_once_prepare_arch.sh.tmpl +++ b/run_once_prepare_arch.sh.tmpl @@ -32,8 +32,10 @@ if [ ! -d ~/.tmux/plugins/tpm ]; then git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm fi -{{- if eq .wm "i3wm" -}} +{{ if eq .wm "i3wm" }} {{- template "i3wm_after" -}} -{{- end -}} +{{ else if eq .wm "gnome" }} +{{- template "gnome_after" -}} +{{ end }} {{- end -}}