1
0
Fork 0
dotfiles/run_once_prepare_arch.sh.tmpl

52 lines
1.8 KiB
Cheetah
Raw Normal View History

{{- if eq .chezmoi.osRelease.idLike "arch" -}}
2022-05-06 22:17:01 +02:00
#!/bin/bash
2022-05-09 00:48:34 +02:00
# Common packages
# ## yay => Use to install AUR packages | Used by (Here in below)
# ## keepassxc => Use to manage keepassxc
2022-09-06 12:14:54 +02:00
# ## Gnome keyring => Use to manage ssh keys, app keys, gpg, ...
packages=(curl git gitui yay keepassxc gnome-keyring)
# ## falchion-shutdown | My custom AUR packages to avoid shutdown my computer when keyboard is sleeping
# ## nerd-fonts-complete | To install my preferred fonts :)
2022-09-16 08:55:16 +02:00
aur_packages=(falchion-shutdown nerd-fonts-complete spotify emacs-ng)
2022-05-09 00:48:34 +02:00
# For terminal
2022-05-09 00:56:17 +02:00
# ## kitty => Terminal emulator like alacritty but it look more powerfull so it can replace alacritty and tmux in future
2022-05-09 00:57:10 +02:00
# ## viu => Terminal image viewer compatible with kitty
2022-09-03 15:47:16 +02:00
# ## tmux
# ## zsh
2022-09-03 17:33:03 +02:00
packages+=(kitty viu tmux fish fzf)
2022-05-09 00:48:34 +02:00
# For development
# ## Modern replacement of vim with lua support
2022-09-03 15:29:00 +02:00
# ## python-neovim => Required by neovim with current config
2022-09-03 16:16:44 +02:00
# ## xclip => Required by neovim with current config to sync clipboard between neovim and system
2022-09-03 15:29:00 +02:00
# ## ripgrep => Required by neovim with current config
2022-05-09 00:48:34 +02:00
# ## rust-analyzer => Use in replacement of RLS | Used by (emacs-ng + neovim + vscode if installed)
2022-09-03 16:16:44 +02:00
packages+=(neovim xclip python-neovim ripgrep rust-analyzer)
2022-05-09 00:48:34 +02:00
2022-05-13 22:19:56 +02:00
{{ if eq .wm "i3wm" }}
{{- template "i3wm_before" -}}
2022-05-13 22:19:56 +02:00
{{ else if eq .wm "gnome" }}
{{- template "gnome_before" -}}
{{ end }}
2022-05-09 00:48:34 +02:00
sudo pacman -S ${packages[@]} --noconfirm --needed
yay -S ${aur_packages[@]} --noconfirm --needed
2022-05-07 00:51:33 +02:00
2022-05-09 00:48:34 +02:00
if [ ! -d ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
2022-09-03 16:59:21 +02:00
if [ ! -d ~/.local/share/omf ]; then
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fi
2022-05-13 23:14:27 +02:00
{{ if eq .wm "i3wm" }}
{{- template "i3wm_after" -}}
2022-05-13 23:14:27 +02:00
{{ else if eq .wm "gnome" }}
{{- template "gnome_after" -}}
{{ end }}
{{- end -}}