diff --git a/setup/install.sh b/setup/install.sh index 1c51607..0d293cb 100644 --- a/setup/install.sh +++ b/setup/install.sh @@ -1,2 +1,11 @@ #!/bin/bash -bash ~/Dotfiles/setup/modules/* +read -n1 -p "what DE to install? [hyprland,sway,none]" doit +case $doit in + hyprland) bash ~/Dotfiles/setup/modules/hyprland.sh ;; + sway) bash ~/Dotfiles/setup/modules/sway.sh ;; + none) echo "Skipping DE installation" ;; + *) echo "please choose a desktop enviroment to install" ;; +esac +bash ~/Dotfiles/setup/modules/core.sh +bash ~/Dotfiles/setup/modules/shell.sh + diff --git a/setup/modules/hyprland.sh b/setup/modules/hyprland.sh index c8b8838..17b2d04 100644 --- a/setup/modules/hyprland.sh +++ b/setup/modules/hyprland.sh @@ -46,6 +46,8 @@ ln -s ~/Dotfiles/desktopenvs/hyprland/btop ~/.config/ #ln -s ~/Dotfiles/desktopenvs/hyprland/eww/ ~/.config/ #ln -s ~/Dotfiles/desktopenvs/hyprland/eww-nobattery/ ~/.config/eww +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/ ;; diff --git a/setup/modules/sway.sh b/setup/modules/sway.sh index 05a7907..1bd57d7 100644 --- a/setup/modules/sway.sh +++ b/setup/modules/sway.sh @@ -1,2 +1,67 @@ #!/bin/bash + +#install components +echo "Installing required Packages" +sudo pacman -Syu alacritty base base-devel brightnessctl btop btrfs-progs cmatrix dmenu fastfetch firefox foot gitgreetd-tuigreet glfw gnu-netcat grim grub gst-plugin-pipewire hollywood htop imagemagick iwd libpulse libva-intel-driver libva-mesa-driver lightdm lightdm-gtk-greeter linux linux-firmware lynx micro nano networkmanager nmap openssh pavucontrol pipewire pipewire-alsa pipewire-jack pipewire-pulse slurp smartmontools sway swaybg swayidle swaylock ttf-jetbrains-mono vim vulkan-intel vulkan-radeon waybar wget wireless_tools wireplumber wireshark-qt wofi wpa_supplicant xdg-utils xf86-video-amdgpu xf86-video-ati xf86-video-nouveau xf86-video-vmware xorg-server xorg-xinit xorg-xwayland yazi zram-generator zsh zsh-completions + +#aur/yay setup +echo "Installing yay" +cd ~ +mkdir install-tmp +cd install-tmp +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg -si +yay --version +cd ~/install-tmp + +#networkmanager setup +echo "enabling NetworkManager" +sudo systemctl enable NetworkManager.service + +#desktop env dotfiles +echo "Installing Desktop enviroment configs" +ln -s ~/Dotfiles/desktopenvs/sway/sway ~/.config/sway +ln -s ~/Dotfiles/desktopenvs/sway/alacritty ~/.config/alacritty + +#zsh setup +echo "Setting up zsh" +chsh -s /usr/bin/zsh +#homectl update --shell=/usr/bin/zsh + +#starship setup +echo "Installing Starship" +curl -sS https://starship.rs/install.sh | sh + +#ohmyzsh setup +echo "Installing oh my zsh" +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + +#ohmyzsh plugins +echo "Installing oh my zsh plugins" +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions + +#greetd setup +echo "Installing greetd" +sudo cp -f ~/Dotfiles/desktopenvs/hyprland/greetd-tuigreet/config.toml /etc/greetd/config.toml +sudo systemctl enable greetd.service + + +#cli dotfiles +echo "Installing bash and zsh setting files" +rm ~/.bashrc +rm ~/.zshrc +ln -s ~/Dotfiles/.bashrc ~/.bashrc +ln -s ~/Dotfiles/.zshrc ~/.zshrc + +ln -s ~/Dotfiles/starship.toml ~/.config/starship.toml +ln -s ~/Dotfiles/micro/ ~/.config/micro +ln -s ~/Dotfiles/yazi/ ~/.config/yazi +ln -s ~/Dotfiles/spotify-tui/config.yml ~/.config/spotify-tui/config.yml + +#final reboot +echo "Press any key to reboot" +read +systemctl reboot