Adds choice to install the whole environment

This commit is contained in:
Michel Fedde 2025-02-12 20:04:53 +01:00
parent 1e6ea20de0
commit 216e476480

View file

@ -1,5 +1,9 @@
#!/bin/env bash #!/bin/env bash
if [ -z ${XDG_SESSION_DESKTOP+x} ]; then
read -p "Which desktop environment do you want to install? " -r XDG_SESSION_DESKTOP
fi
echo "Installing dependencies for $XDG_SESSION_DESKTOP" echo "Installing dependencies for $XDG_SESSION_DESKTOP"
if [ $XDG_SESSION_DESKTOP = "i3" ]; then if [ $XDG_SESSION_DESKTOP = "i3" ]; then
@ -8,11 +12,11 @@ if [ $XDG_SESSION_DESKTOP = "i3" ]; then
dunst \ dunst \
pulseaudio-control \ pulseaudio-control \
nitrogen nitrogen
fi fi
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
yay -S --needed waybar \ yay -S --needed hyprland \
waybar \
hyprlock \ hyprlock \
swww \ swww \
hyprswitch \ hyprswitch \
@ -25,5 +29,4 @@ if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
wl-clipboard \ wl-clipboard \
grim \ grim \
slurp slurp
fi fi