yadm-config/.config/yadm/bootstrap

67 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
confirm() {
# call with a prompt string or use a default
read -r -p "${1} [y/N] " response
case "$response" in
[yY][eE][sS] | [yY])
1
;;
*)
0
;;
esac
}
debug() {
echo "Debug:"
echo "XDG_SESSION_DESKTOP $XDG_SESSION_DESKTOP"
}
CYAN='\033[0;36m'
NC='\033[0m'
# install dependencies
if confirm "Install dependencies (general)?"; then
yay -S --needed neovim \
kitty \
btop \
zoxide fzf \
evremap \
superfile
fi
if [ $XDG_SESSION_DESKTOP = "i3" ]; then
echo -e "${CYAN}# Installing dependencies (for i3)${NC}"
yay -S --needed polybar \
betterlockscreen \
dunst \
pulseaudio-control \
nitrogen
fi
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
echo -e "${CYAN}# Installing dependencies (for Hyprland)${NC}"
yay -S --needed waybar \
hyprlock \
swww \
hyprswitch \
nwg-dock-hyprland \
nwg-drawer \
swaync \
wlogout wayland-logout \
hyprpicker \
pulseaudio-control \
wl-clipboard \
grim \
slurp
fi
echo "# Appling setup"
sudo ln -s ~/.config/evremap.toml /etc/evremap.toml
systemctl --user enable --now evremap
getnf -i "JetBrainsMono"
fc-cache