work on install script

main
The_miro 2024-11-12 10:06:34 +01:00
parent b1d88c753f
commit f85bc2c1fa
1 changed files with 25 additions and 11 deletions

View File

@ -1,9 +1,12 @@
#install components #install components
echo "Installing required Packages"
sudo pacman -S base base-devel btop btrfs-progs curl dolphin dunst fastfetch firefox flatpak gcc git gnu-netcat greetd-tuigreet grim grub gst-plugin-pipewire htop hyfetch hyprland iwd jq kitty ldns libpulse linux linux-firmware micro nano networkmanager nmap openssh nerd-fonts pipewire pipewire-alsa pipewire-jack pipewire-pulse polkit-kde-agent qt5-wayland qt6-wayland slurp smartmontools swww unzip vim waybar wget wireless_tools wireplumber wireshark-qt wofi wpa_supplicant xdg-desktop-portal-hyprland xdg-utils xf86-video-amdgpu xf86-video-ati xf86-video-nouveau xf86-video-vmware xorg-server xorg-xinit zip zram-generator zsh sudo pacman -S base base-devel btop btrfs-progs curl dolphin dunst fastfetch firefox flatpak gcc git gnu-netcat greetd-tuigreet grim grub gst-plugin-pipewire htop hyfetch hyprland iwd jq kitty ldns libpulse linux linux-firmware micro nano networkmanager nmap openssh nerd-fonts pipewire pipewire-alsa pipewire-jack pipewire-pulse polkit-kde-agent qt5-wayland qt6-wayland slurp smartmontools swww unzip vim waybar wget wireless_tools wireplumber wireshark-qt wofi wpa_supplicant xdg-desktop-portal-hyprland xdg-utils xf86-video-amdgpu xf86-video-ati xf86-video-nouveau xf86-video-vmware xorg-server xorg-xinit zip zram-generator zsh
#networkmanager setup #networkmanager setup
echo "enabling NetworkManager"
sudo systemctl enable NetworkManager.service sudo systemctl enable NetworkManager.service
#aur/yay setup #aur/yay setup
echo "Installing yay"
cd ~ cd ~
mkdir install-tmp mkdir install-tmp
cd install-tmp cd install-tmp
@ -13,17 +16,8 @@ makepkg -si
yay --version yay --version
cd ~/install-tmp cd ~/install-tmp
#cli dotfiles
cd ~
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
#desktop env dotfiles #desktop env dotfiles
echo "Installing Desktop enviroment configs"
ln -s ~/Dotfiles/desktopenvs/hyprland/waybar/ ~/.config/waybar ln -s ~/Dotfiles/desktopenvs/hyprland/waybar/ ~/.config/waybar
ln -s ~/Dotfiles/desktopenvs/hyprland/kitty/ ~/.config/kitty ln -s ~/Dotfiles/desktopenvs/hyprland/kitty/ ~/.config/kitty
ln -s ~/Dotfiles/desktopenvs/hyprland/hypr/ ~/.config/hypr ln -s ~/Dotfiles/desktopenvs/hyprland/hypr/ ~/.config/hypr
@ -32,20 +26,40 @@ ln -s ~/Dotfiles/desktopenvs/hyprland/dunst/ ~/.config/dunst
#zsh setup #zsh setup
echo "Setting up zsh"
chsh -s /usr/bin/zsh chsh -s /usr/bin/zsh
#homectl update --shell=/usr/bin/zsh #homectl update --shell=/usr/bin/zsh
#starship setup #starship setup
echo "Installing Starship"
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
#ohmyzsh setup #ohmyzsh setup
echo "Installing oh my zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#ohmyzsh plugins #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-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 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#greetd setup #greetd setup
echo "Installing greetd"
sudo cp -f ~/Dotfiles/desktopenvs/hyprland/greetd-tuigreet/config.toml /etc/greetd/config.toml sudo cp -f ~/Dotfiles/desktopenvs/hyprland/greetd-tuigreet/config.toml /etc/greetd/config.toml
sudo systemctl enable greetd.service 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
#final reboot #final reboot
#systemctl reboot echo "Press any key to reboot"
read
systemctl reboot