grub with script, added missing packages, removed omz
This commit is contained in:
36
configure.sh
36
configure.sh
@@ -3,7 +3,21 @@ echo "$START_DIR"
|
|||||||
|
|
||||||
echo "Installing basic drivers and utilities"
|
echo "Installing basic drivers and utilities"
|
||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
sudo pacman -S mesa sof-firmware zsh curl linux-firmware-marvell gcc man-db lib32-mesa openssh lib32-vulkan-intel vulkan-intel reflector power-profiles-daemon cpupower lib32-pipewire pipewire-audio pipewire-pulse pavucontrol git base-devel xdg-user-dirs --needed --noconfirm
|
sudo pacman -S mesa sof-firmware zsh curl linux-firmware-marvell gcc man-db lib32-mesa openssh lib32-vulkan-intel vulkan-intel reflector power-profiles-daemon cpupower lib32-pipewire pipewire-audio pipewire-pulse pavucontrol git base base-devel xdg-user-dirs --needed --noconfirm
|
||||||
|
|
||||||
|
cpu_vendor=$(lscpu | grep "Vendor ID" | awk '{print $3}')
|
||||||
|
|
||||||
|
if [[ "$cpu_vendor" == "AuthenticAMD" ]]; then
|
||||||
|
echo "Detected AMD CPU — installing amd-ucode..."
|
||||||
|
sudo pacman -S amd-ucode --needed --noconfirm
|
||||||
|
elif [[ "$cpu_vendor" == "GenuineIntel" ]]; then
|
||||||
|
echo "Detected Intel CPU — installing intel-ucode..."
|
||||||
|
sudo pacman -S intel-ucode --needed --noconfirm
|
||||||
|
else
|
||||||
|
echo "⚠️ No supported CPU vendor detected."
|
||||||
|
echo "No CPU matched (Vendor ID: $cpu_vendor)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Enabling reflector service for mirror optimization"
|
echo "Enabling reflector service for mirror optimization"
|
||||||
sudo systemctl enable reflector
|
sudo systemctl enable reflector
|
||||||
@@ -21,13 +35,15 @@ echo "Yay sync"
|
|||||||
yay -Sy
|
yay -Sy
|
||||||
|
|
||||||
echo "turning off grub timeout"
|
echo "turning off grub timeout"
|
||||||
sudo nano /etc/default/grub
|
sudo ./grub/grub.sh
|
||||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
#sudo nano /etc/default/grub
|
||||||
|
#sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
echo "Installing hyprland and stuff for wm"
|
echo "Installing hyprland and stuff for wm"
|
||||||
sudo pacman -S hyprland lua51 luarocks tmux hyprlock blueman zsh-autosuggestions zsh-syntax-highlighting network-manager-applet waybar yazi ffmpeg 7zip jq poppler fd ripgrep fzf zoxide resvg imagemagick ttf-jetbrains-mono-nerd ttf-jetbrains-mono ghostty swaync brightnessctl wireplumber xdg-desktop-portal-hyprland hyprpolkitagent qt5-wayland qt6-wayland hyprpaper xclip sddm rofi-wayland unzip make ripgrep fd neovim --needed --noconfirm
|
sudo pacman -S hyprland lua51 luarocks tmux hyprlock bluez bluez-utils btop docker docker-compose gradle gst-plugin-pipewire gvfs-smb htop hyprshot blueman zsh-autosuggestions zsh-syntax-highlighting network-manager-applet waybar yazi ffmpeg 7zip jq poppler fd ripgrep fzf zoxide resvg imagemagick ttf-jetbrains-mono-nerd ttf-jetbrains-mono ghostty swaync brightnessctl wireplumber xdg-desktop-portal-hyprland hyprpolkitagent qt5-wayland qt6-wayland hyprpaper xclip sddm rofi-wayland unzip make ripgrep fd neovim dotnet-runtime dotnet-sdk aspnet-runtime jdk-openjdk openjdk-doc libpulse mono nano nemo networkmanager-openvpn nmap opencv openssl openvpn pipewire pipewire-alsa pipewire-jack vlc vlc-plugins-all wget curl zram-generator --needed --noconfirm
|
||||||
yay -S xwaylandvideobridge --needed --noconfirm
|
yay -S xwaylandvideobridge --needed --noconfirm
|
||||||
yay -S zen-browser-bin --needed --noconfirm
|
yay -S zen-browser-bin --needed --noconfirm
|
||||||
|
yay -S visual-studio-bin unityhub --needed --noconfirm
|
||||||
|
|
||||||
echo "Turining on sddm login manager"
|
echo "Turining on sddm login manager"
|
||||||
sudo systemctl enable sddm
|
sudo systemctl enable sddm
|
||||||
@@ -58,14 +74,14 @@ mkdir -p .config/rofi
|
|||||||
cp "$START_DIR"/rofi/* $HOME/.config/rofi/ -r
|
cp "$START_DIR"/rofi/* $HOME/.config/rofi/ -r
|
||||||
|
|
||||||
#apps
|
#apps
|
||||||
yay -S jellifin-media-player youtube-dl-gui --needed --noconfirm
|
yay -S jellifin-media-player youtube-dl-gui jetbrains-toolbox --needed --noconfirm
|
||||||
sudo pacman -S steam nwg-displays calibre freecad obs-studio samba cmake feh --needed --noconfirm
|
sudo pacman -S steam nwg-displays calibre freecad obs-studio samba cmake feh --needed --noconfirm
|
||||||
sudo pacman -S wine wine-gecko wine-mono winetricks --needed --noconfirm
|
sudo pacman -S wine wine-gecko wine-mono winetricks --needed --noconfirm
|
||||||
|
|
||||||
echo "Installing Oh my zsh"
|
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)"
|
||||||
cp "$START_DIR"/zsh/.zshcr $HOME/.zshrc
|
#cp "$START_DIR"/zsh/.zshcr $HOME/.zshrc
|
||||||
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
|
||||||
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
|
||||||
#wget https://raw.githubusercontent.com/zakaziko99/agnosterzak-ohmyzsh-theme/master/agnosterzak.zsh-theme
|
#wget https://raw.githubusercontent.com/zakaziko99/agnosterzak-ohmyzsh-theme/master/agnosterzak.zsh-theme
|
||||||
chsh -s $(which zsh)
|
#chsh -s $(which zsh)
|
||||||
|
|||||||
23
grub/grub.sh
Executable file
23
grub/grub.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
GRUB_FILE="/etc/default/grub"
|
||||||
|
|
||||||
|
# Ensure the file exists before proceeding
|
||||||
|
if [[ -f "$GRUB_FILE" ]]; then
|
||||||
|
echo "Updating GRUB timeout to 0..."
|
||||||
|
|
||||||
|
# Replace or add the GRUB_TIMEOUT line
|
||||||
|
if grep -q "^GRUB_TIMEOUT=" "$GRUB_FILE"; then
|
||||||
|
# Modify existing line
|
||||||
|
sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/' "$GRUB_FILE"
|
||||||
|
else
|
||||||
|
# Add it if missing
|
||||||
|
echo "GRUB_TIMEOUT=0" >> "$GRUB_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
|
echo "GRUB timeout set to 0 and configuration updated."
|
||||||
|
else
|
||||||
|
echo "❌ $GRUB_FILE not found!"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user