Changes bootstrap to use different files
This commit is contained in:
parent
6f74d3b3db
commit
c5935a5692
5 changed files with 56 additions and 41 deletions
9
.config/yadm/_install_dependencies.sh
Executable file
9
.config/yadm/_install_dependencies.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
echo "Installing general apps"
|
||||||
|
|
||||||
|
yay -S --needed neovim \
|
||||||
|
kitty \
|
||||||
|
btop \
|
||||||
|
zoxide fzf \
|
||||||
|
superfile
|
||||||
29
.config/yadm/_install_desktop_env.sh
Executable file
29
.config/yadm/_install_desktop_env.sh
Executable 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
5
.config/yadm/_install_fonts.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
yay -S --needed getnf
|
||||||
|
getnf -i "JetBrainsMono"
|
||||||
|
fc-cache
|
||||||
7
.config/yadm/_install_keymap.sh
Executable file
7
.config/yadm/_install_keymap.sh
Executable 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
|
||||||
|
|
@ -21,47 +21,12 @@ debug() {
|
||||||
CYAN='\033[0;36m'
|
CYAN='\033[0;36m'
|
||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
|
|
||||||
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
if confirm "Install dependencies (general)?"; then
|
source "$SCRIPT_DIR/_install_dependencies.sh"
|
||||||
yay -S --needed neovim \
|
|
||||||
kitty \
|
|
||||||
btop \
|
|
||||||
zoxide fzf \
|
|
||||||
evremap \
|
|
||||||
superfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $XDG_SESSION_DESKTOP = "i3" ]; then
|
source "$SCRIPT_DIR/_install_desktop_env.sh"
|
||||||
echo -e "${CYAN}# Installing dependencies (for i3)${NC}"
|
|
||||||
yay -S --needed polybar \
|
|
||||||
betterlockscreen \
|
|
||||||
dunst \
|
|
||||||
pulseaudio-control \
|
|
||||||
nitrogen
|
|
||||||
|
|
||||||
fi
|
source "$SCRIPT_DIR/_install_keymap.sh"
|
||||||
|
source "$SCRIPT_DIR/_install_fonts.sh"
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue