2022-05-06 22:17:01 +02:00
|
|
|
{{ if eq .chezmoi.osRelease.idLike "arch" }}
|
|
|
|
#!/bin/bash
|
2022-05-09 00:48:34 +02:00
|
|
|
|
|
|
|
# Common packages
|
|
|
|
packages=(curl git)
|
|
|
|
|
2022-05-06 23:43:03 +02:00
|
|
|
# All requirements for i3
|
2022-05-09 00:48:34 +02:00
|
|
|
# ## i3-gaps => I3 version but with spaces between menu | Equivalent i3
|
|
|
|
# ## picom => Compositor to add effects in window | Use with i3
|
|
|
|
# ## polybar => Use to create simple bar in bottom | Use with i3
|
|
|
|
# ## dunst => Customizable and simple notification manager (to test it, use notify-send) | Use with i3
|
|
|
|
# ## dmenu => Basic custom menu like rofi to launch application with Windows + D | Use with i3
|
|
|
|
# ## i3lock => Custom lock screen
|
|
|
|
# ## gnome-keyring => Use to store sensitive data like password by google chrome and other
|
2022-05-09 00:54:00 +02:00
|
|
|
# ## xss-lock => Use to use external locker as X screen saver | Use to use i3lock for i3
|
|
|
|
# ## dex => Use to generate or use Desktop file .desktop of type Application | Use with i3
|
|
|
|
# ## feh => Use to set wallpaper | Use with i3
|
2022-05-09 00:48:34 +02:00
|
|
|
# ## jq => Json parser for command line use by my custom script for relative workspaces because i3-msg return json format
|
|
|
|
packages+=(picom i3-gaps polybar dunst dmenu i3lock gnome-keyring xss-lock dex feh jq)
|
|
|
|
|
|
|
|
# Utils in complement for i3
|
|
|
|
# ## bluez-tools => Used by some polybar scripts
|
|
|
|
# ## blueberry => Useful interface to manage bluetooth devices
|
|
|
|
# ## pavucontrol => Useful interface to manage audio (<!> Not tried with pipewire)
|
|
|
|
# ## network-manager-applet => Useful applet to manage network (Support Wifi and Wired)
|
|
|
|
# ## playerctl => Use to manage spotify, browsers playlist and many more from keyboard key (Use dbus to communicate)
|
|
|
|
# ## arandr => Basic interface to set current monitor position + resolution
|
|
|
|
packages+=(bluez-tools blueberry pavucontrol network-manager-applet playerctl arandr)
|
|
|
|
|
|
|
|
# For terminal
|
|
|
|
# ## tmux => To use multiple shell in same terminal | Used by (alacritty) | <!>
|
|
|
|
# ## alacritty => Terminal emulator coded in Rust | <!>
|
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-05-09 00:48:34 +02:00
|
|
|
packages+=(kitty viu alacritty tmux 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)
|
|
|
|
|
|
|
|
# For productivity
|
|
|
|
# ## kdeconnect => To sync phone and Desktop | Used by (i3 config)
|
|
|
|
packages+=(kdeconnect)
|
|
|
|
|
|
|
|
# Other
|
|
|
|
# ## yay => Use to install AUR packages | Used by (Here in below)
|
|
|
|
packages+=(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)
|
|
|
|
|
|
|
|
# Spotify to listen music :)
|
|
|
|
# ## spicetify-cli => Use to customize spotify (Add vim keyboard style)
|
|
|
|
aur_packages+=(spotify spicetify-cli)
|
2022-05-07 00:48:01 +02:00
|
|
|
|
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
|
|
|
case "${aur_packages[@]}" in
|
|
|
|
*"spicetify-cli"*)
|
|
|
|
sudo chmod a+wr /opt/spotify
|
|
|
|
sudo chmod a+wr /opt/spotify/Apps -R ;;
|
|
|
|
esac
|
2022-05-07 17:49:02 +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-05-07 00:48:01 +02:00
|
|
|
|
2022-05-06 22:26:50 +02:00
|
|
|
{{ end }}
|