1
0
Fork 0
dotfiles/run_once_prepare_arch.sh.tmpl
Florian RICHER 1b33d87b2c Add .chezmoitemplates/i3wm_after
Add .chezmoitemplates/i3wm_before
Remove dot_config/alacritty/alacritty.yml
Remove dot_config/chezmoi/chezmoi.toml
Add dot_config/chezmoi/chezmoi.toml.tmpl.literal
Update run_once_prepare_arch.sh.tmpl
2022-05-13 22:00:41 +02:00

40 lines
1.2 KiB
Cheetah

{{- $wm := (output "bash" "-c" "echo $DESKTOP_SESSION") -}}
{{- if eq .chezmoi.osRelease.idLike "arch" -}}
#!/bin/bash
# Common packages
# ## yay => Use to install AUR packages | Used by (Here in below)
packages=(curl git yay)
# ## falchion-shutdown | My custom AUR packages to avoid shutdown my computer when keyboard is sleeping
# ## nerd-fonts-complete | To install my preferred fonts :)
aur_packages=(falchion-shutdown nerd-fonts-complete)
# For terminal
# ## kitty => Terminal emulator like alacritty but it look more powerfull so it can replace alacritty and tmux in future
# ## viu => Terminal image viewer compatible with kitty
packages+=(kitty viu zsh)
# For development
# ## Modern replacement of vim with lua support
# ## rust-analyzer => Use in replacement of RLS | Used by (emacs-ng + neovim + vscode if installed)
packages+=(neovim rust-analyzer)
{{- if eq $wm "i3" -}}
{{- template "i3wm_before" -}}
{{- else if eq $wm "gnome" -}}
sadsada
{{- end -}}
sudo pacman -S ${packages[@]} --noconfirm --needed
yay -S ${aur_packages[@]} --noconfirm --needed
if [ ! -d ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
{{- if eq $wm "i3" -}}
{{- template "i3wm_after" -}}
{{- end -}}
{{- end -}}