Changes bootstrap to use different files

This commit is contained in:
Michel Fedde 2025-02-11 00:03:47 +01:00
parent 6f74d3b3db
commit c5935a5692
5 changed files with 56 additions and 41 deletions

View file

@ -0,0 +1,9 @@
#!/bin/env bash
echo "Installing general apps"
yay -S --needed neovim \
kitty \
btop \
zoxide fzf \
superfile

View file

@ -0,0 +1,29 @@
#!/bin/env bash
echo "Installing dependencies for $XDG_SESSION_DESKTOP"
if [ $XDG_SESSION_DESKTOP = "i3" ]; then
yay -S --needed polybar \
betterlockscreen \
dunst \
pulseaudio-control \
nitrogen
fi
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
yay -S --needed waybar \
hyprlock \
swww \
hyprswitch \
nwg-dock-hyprland \
nwg-drawer \
swaync \
wlogout wayland-logout \
hyprpicker \
pulseaudio-control \
wl-clipboard \
grim \
slurp
fi

5
.config/yadm/_install_fonts.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/env bash
yay -S --needed getnf
getnf -i "JetBrainsMono"
fc-cache

View file

@ -0,0 +1,7 @@
#!/bin/env bash
echo "# Installing keymapping"
yay -S --needed evremap
sudo ln -s ~/.config/evremap.toml /etc/evremap.toml
systemctl --user enable --now evremap

View file

@ -21,47 +21,12 @@ debug() {
CYAN='\033[0;36m'
NC='\033[0m'
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
# install dependencies
if confirm "Install dependencies (general)?"; then
yay -S --needed neovim \
kitty \
btop \
zoxide fzf \
evremap \
superfile
fi
source "$SCRIPT_DIR/_install_dependencies.sh"
if [ $XDG_SESSION_DESKTOP = "i3" ]; then
echo -e "${CYAN}# Installing dependencies (for i3)${NC}"
yay -S --needed polybar \
betterlockscreen \
dunst \
pulseaudio-control \
nitrogen
source "$SCRIPT_DIR/_install_desktop_env.sh"
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
source "$SCRIPT_DIR/_install_keymap.sh"
source "$SCRIPT_DIR/_install_fonts.sh"