Dotfiles/setup/modules/Desktop-Enviroments/hyprland.sh

73 lines
2.4 KiB
Bash

#!/bin/bash
echo "Installing required Packages"
sudo pacman -Syu --noconfirm hyprland hyprcursor hyprpaper hyprlock kitty alacritty dunst nwg-dock-hyprland nwg-drawer nwg-menu nwg-look
echo "Installing AUR packages"
yay -Syu --answerdiff None --answerclean All hyprland-workspaces bluetuith
#eww compilation
echo "compiling EWW"
cd ~/install-tmp
git clone https://github.com/elkowar/eww
cd eww
cargo build --release --no-default-features --features=wayland
cd target/release
chmod +x ./eww
sudo cp ./eww /usr/bin
sudo cp -r ~/Dotfiles/gtk-themes/cyberqueer /usr/share/themes
sudo cp ~/Dotfiles/desktopenvs/hyprland/btop/themes/cyberqueer.theme /usr/share/btop/themes
sudo cp -f ~/Dotfiles/desktopenvs/hyprland/greetd-tuigreet/config.toml /etc/greetd/config.toml
cd ~/install-tmp
mkdir ~/.icons
wget https://github.com/guillaumeboehm/Nordzy-cursors/releases/download/v2.3.0/Nordzy-cursors-lefthand.tar.gz
tar -zxvf Nordzy-cursors-lefthand.tar.gz -C $HOME/.icons/
rm -rf ~/.config/kitty
ln -s ~/Dotfiles/desktopenvs/hyprland/kitty/ ~/.config/
rm -rf ~/.config/hypr
ln -s ~/Dotfiles/desktopenvs/hyprland/hypr/ ~/.config/
rm -rf ~/.config/wofi
ln -s ~/Dotfiles/desktopenvs/hyprland/wofi/ ~/.config/
rm -rf ~/.config/dunst
ln -s ~/Dotfiles/desktopenvs/hyprland/dunst/ ~/.config/
rm -rf ~/.config/alacritty
ln -s ~/Dotfiles/desktopenvs/hyprland/alacritty ~/.config/
rm -rf ~/.config/nwg-dock-hyprland
ln -s ~/Dotfiles/desktopenvs/hyprland/nwg-dock-hyprland ~/.config/
rm -rf ~/.config/nwg-drawer
ln -s ~/Dotfiles/desktopenvs/hyprland/nwg-drawer ~/.config
rm -rf ~/.config/nwg-panel
ln -s ~/Dotfiles/desktopenvs/hyprland/nwg-panel ~/.config
rm -rf ~/.config/btop
ln -s ~/Dotfiles/desktopenvs/hyprland/btop ~/.config/
#ln -s ~/Dotfiles/desktopenvs/hyprland/gtk/* ~/.config
#ln -s ~/Dotfiles/desktopenvs/hyprland/eww/ ~/.config/
#ln -s ~/Dotfiles/desktopenvs/hyprland/eww-nobattery/ ~/.config/eww
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
rm -rf ~/.config/Vencord
ln -s ~/Dotfiles/desktopenvs/hyprland/Vencord ~/.config/
wget https://cloud.abdelbaki.eu/apps/theming/image/background?v=15 -O ~/Pictures/background.jpg
read -n1 -p "Install eww bar with or without battery indicator? [y,n]" doit
case $doit in
y|Y) ln -s ~/Dotfiles/desktopenvs/hyprland/eww/ ~/.config/ ;;
n|N) ln -s ~/Dotfiles/desktopenvs/hyprland/eww-nobattery/ ~/.config/eww ;;
*) echo "enter a valid decision" ;;
esac