From b1e08e5ea86d0d06e41a22c54ab854200ae0c6f1 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Sun, 4 Aug 2024 16:43:10 +0530 Subject: [PATCH 01/32] Created master script --- scripts/install.sh | 159 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100755 scripts/install.sh diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..70111cd --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,159 @@ +#!/bin/bash + +# Color codes +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' # No Color + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# Log file +LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log" + +# Trap for unexpected exits +trap 'trap_message' INT TERM + +function trap_message { + print_error "Script interrupted. Exiting.....\n" + # Add any cleanup code here + log_message "Script interrupted and exited" + exit 1 +} + +# Function to log messages +function log_message { + echo "$(date): $1" >> "$LOG_FILE" +} + +# Function to print ASCII art using figlet if installed, otherwise use print_info +function print_ascii_art { + local text="$1" + if command -v figlet &> /dev/null; then + echo -e "${BLUE}" + figlet -f small "$text" + echo -e "${NC}" + else + print_info "$text" + fi +} + +# Functions for colored output +function print_error { + echo -e "${RED}$1${NC}" +} + +function print_success { + echo -e "${GREEN}$1${NC}" +} + +function print_warning { + echo -e "${YELLOW}$1${NC}" +} + +function print_info { + echo -e "${BLUE}$1${NC}" +} + +# Function to ask for confirmation +function ask_confirmation { + while true; do + read -p "$(print_warning "$1 (y/n): ")" -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + return 0 # User confirmed + elif [[ $REPLY =~ ^[Nn]$ ]]; then + print_error "Operation cancelled.\n" + return 1 # User cancelled + else + print_error "Invalid input. Please answer y or n.\n" + fi + done +} + +# Function to run a command with retry and confirmation +function run_command { + local cmd="$1" + local description="$2" + if ask_confirmation "Do you want to run: $description"; then + while ! eval "$cmd"; do + print_error "Command failed." + if ! ask_confirmation "Retry $description?"; then + print_warning "$description was not completed." + return 1 + fi + done + print_success "$description completed successfully." + return 0 + else + print_warning "$description was skipped." + return 1 + fi +} + +# Function to run a script with retry and confirmation +function run_script { + local script="$SCRIPT_DIR/$1" + local description="$2" + if ask_confirmation "Do you want to execute '$description' script"; then + while ! bash "$script"; do + print_error "$description script failed." + if ! ask_confirmation "Retry $description"; then + return 1 # User chose not to retry + fi + done + print_success "$description completed successfully.\n" + else + return 1 # User chose not to run the script + fi +} +#-------------------------------------------------------------- + +# ____ _____ _ ____ _____ +# / ___|_ _|/ \ | _ \_ _| +# \___ \ | | / _ \ | |_) || | +# ___) || |/ ___ \| _ < | | +# |____/ |_/_/ \_\_| \_\|_| + +# Script start +log_message "Installation started" +print_ascii_art "Simple Hyprland" + +# Check if running as root +if [ "$EUID" -ne 0 ]; then + print_error "Please run as root" + log_message "Script not run as root. Exiting." + exit 1 +fi + +# Check if OS is Arch Linux +if [ -f /etc/os-release ]; then + . /etc/os-release + if [[ "$ID" != "arch" ]]; then + print_warning "This script is designed for Arch Linux. Your system: $PRETTY_NAME" + if ! ask_confirmation "Continue anyway?"; then + log_message "Installation cancelled due to unsupported OS" + exit 1 + fi + else + print_success "Arch Linux detected. Proceeding with installation.\n" + log_message "Arch Linux detected. Installation proceeding." + fi +else + print_error "Unable to determine OS. /etc/os-release not found." + if ! ask_confirmation "Continue anyway?"; then + log_message "Installation cancelled due to unknown OS" + exit 1 + fi +fi + +# Run child scripts +run_script "prerequisites.sh" "Prerequisites Setup" +run_script "hypr.sh" "Hyprland & Critical Softwares Setup" +run_script "utilities.sh" "Basic Utilities & Configs" +run_script "theming.sh" "Themes and Tools" +run_script "final.sh" "Final" + +print_ascii_art "Setup Complete" +log_message "Installation completed successfully" From 44319624a63bc08ebeec83c8daa84534e964300e Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Sun, 4 Aug 2024 17:00:02 +0530 Subject: [PATCH 02/32] removed figlet as dependency --- scripts/install.sh | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 70111cd..5a1e8b6 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -5,10 +5,13 @@ RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' +BOLD='\033[1m' NC='\033[0m' # No Color + # Get the directory of the current script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + # Log file LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log" @@ -16,7 +19,7 @@ LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log" trap 'trap_message' INT TERM function trap_message { - print_error "Script interrupted. Exiting.....\n" + print_error "\nScript interrupted. Exiting.....\n" # Add any cleanup code here log_message "Script interrupted and exited" exit 1 @@ -27,19 +30,7 @@ function log_message { echo "$(date): $1" >> "$LOG_FILE" } -# Function to print ASCII art using figlet if installed, otherwise use print_info -function print_ascii_art { - local text="$1" - if command -v figlet &> /dev/null; then - echo -e "${BLUE}" - figlet -f small "$text" - echo -e "${NC}" - else - print_info "$text" - fi -} - -# Functions for colored output +# Functions for colored/bold output function print_error { echo -e "${RED}$1${NC}" } @@ -56,6 +47,10 @@ function print_info { echo -e "${BLUE}$1${NC}" } +function print_bold_blue { + echo -e "${BLUE}${BOLD}$1${NC}" +} + # Function to ask for confirmation function ask_confirmation { while true; do @@ -110,15 +105,9 @@ function run_script { } #-------------------------------------------------------------- -# ____ _____ _ ____ _____ -# / ___|_ _|/ \ | _ \_ _| -# \___ \ | | / _ \ | |_) || | -# ___) || |/ ___ \| _ < | | -# |____/ |_/_/ \_\_| \_\|_| - # Script start log_message "Installation started" -print_ascii_art "Simple Hyprland" +print_bold_blue "\nSimple Hyprland\n" # Check if running as root if [ "$EUID" -ne 0 ]; then @@ -155,5 +144,5 @@ run_script "utilities.sh" "Basic Utilities & Configs" run_script "theming.sh" "Themes and Tools" run_script "final.sh" "Final" -print_ascii_art "Setup Complete" +print_bold_blue "Setup Complete\n" log_message "Installation completed successfully" From fdcf524964a359309fb96599473b08f4d2692d30 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Sun, 4 Aug 2024 18:02:26 +0530 Subject: [PATCH 03/32] testing basic ops --- scripts/prerequisites.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/prerequisites.sh diff --git a/scripts/prerequisites.sh b/scripts/prerequisites.sh new file mode 100755 index 0000000..91e4fd0 --- /dev/null +++ b/scripts/prerequisites.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Source the master script +source "$SCRIPT_DIR/install.sh" + +log_message "Installation started for prerequisites section" +print_info "Starting prerequisites setup..." + + +run_command "sudo pacman -Syyu --noconfirm" "Update package database and upgrade packages" From a7c7fac91268c16bd0879036c939949d262528c3 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Mon, 5 Aug 2024 09:34:09 +0530 Subject: [PATCH 04/32] divided scripts according to functionality --- scripts/helper.sh | 164 +++++++++++++++++++++++++++++++++++++++++++++ scripts/install.sh | 136 +++---------------------------------- 2 files changed, 173 insertions(+), 127 deletions(-) create mode 100755 scripts/helper.sh diff --git a/scripts/helper.sh b/scripts/helper.sh new file mode 100755 index 0000000..f1a49cc --- /dev/null +++ b/scripts/helper.sh @@ -0,0 +1,164 @@ +#!/bin/bash + +# Color codes +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +BOLD='\033[1m' +NC='\033[0m' # No Color + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Log file +LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log" + +function trap_message { + print_error "\n\nScript interrupted. Exiting.....\n" + # Add any cleanup code here + log_message "Script interrupted and exited" + exit 1 +} + +# Function to log messages +function log_message { + echo "$(date): $1" >> "$LOG_FILE" +} + +# Functions for colored/bold output +function print_error { + echo -e "${RED}$1${NC}" +} + +function print_success { + echo -e "${GREEN}$1${NC}" +} + +function print_warning { + echo -e "${YELLOW}$1${NC}" +} + +function print_info { + echo -e "${BLUE}$1${NC}" +} + +function print_bold_blue { + echo -e "${BLUE}${BOLD}$1${NC}" +} + +# Function to ask for confirmation +function ask_confirmation { + while true; do + read -p "$(print_warning "$1 (y/n): ")" -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + log_message "Operation accepted by user." + return 0 # User confirmed + elif [[ $REPLY =~ ^[Nn]$ ]]; then + log_message "Operation cancelled by user." + print_error "Operation cancelled.\n" + return 1 # User cancelled + else + print_error "Invalid input. Please answer y or n.\n" + fi + done +} + +# Function to run a command with optional confirmation and retry +function run_command { + local cmd="$1" + local description="$2" + local ask_confirm="${3:-yes}" # Default to asking for confirmation + local use_sudo="${4:-yes}" # Default to using sudo + + log_message "Attempting to run: $description" + + if [[ "$ask_confirm" == "yes" ]]; then + if ! ask_confirmation "Do you want to $description"; then + print_warning "$description was skipped." + log_message "$description was skipped by user choice." + return 1 + fi + else + print_info "\n$description" # Echo what it's doing without confirmation + fi + + local full_cmd="" + if [[ "$use_sudo" == "no" ]]; then + full_cmd="sudo -u $SUDO_USER $cmd" + else + full_cmd="$cmd" + fi + + while ! eval "$full_cmd"; do + print_error "Command failed." + log_message "Command failed: $cmd" + if [[ "$ask_confirm" == "yes" ]]; then + if ! ask_confirmation "Retry $description?"; then + print_warning "$description was not completed." + log_message "$description was not completed due to failure and user chose not to retry." + return 1 + fi + else + print_warning "$description failed and will not be retried." + log_message "$description failed and was not retried (auto mode)." + return 1 + fi + done + + print_success "$description completed successfully." + log_message "$description completed successfully." + return 0 +} + +# Function to run a script with retry and confirmation +function run_script { + local script="$SCRIPT_DIR/$1" + local description="$2" + if ask_confirmation "Do you want to execute '$description' script"; then + while ! bash "$script"; do + print_error "$description script failed." + if ! ask_confirmation "Retry $description"; then + return 1 # User chose not to retry + fi + done + print_success "\n$description completed successfully.\n" + else + return 1 # User chose not to run the script + fi +} + +function check_root { + if [ "$EUID" -ne 0 ]; then + print_error "Please run as root" + log_message "Script not run as root. Exiting." + exit 1 + fi + + # Store the original user for later use + SUDO_USER=$(logname) + log_message "Original user is $SUDO_USER" +} + +function check_os { + if [ -f /etc/os-release ]; then + . /etc/os-release + if [[ "$ID" != "arch" ]]; then + print_warning "This script is designed for Arch Linux. Your system: $PRETTY_NAME" + if ! ask_confirmation "Continue anyway?"; then + log_message "Installation cancelled due to unsupported OS" + exit 1 + fi + else + print_success "Arch Linux detected. Proceeding with installation.\n" + log_message "Arch Linux detected. Installation proceeding." + fi + else + print_error "Unable to determine OS. /etc/os-release not found." + if ! ask_confirmation "Continue anyway?"; then + log_message "Installation cancelled due to unknown OS" + exit 1 + fi + fi +} \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index 5a1e8b6..0fe4c7d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,148 +1,30 @@ #!/bin/bash -# Color codes -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -BOLD='\033[1m' -NC='\033[0m' # No Color - - # Get the directory of the current script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -# Log file -LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log" +# Source helper file +source $SCRIPT_DIR/helper.sh # Trap for unexpected exits trap 'trap_message' INT TERM -function trap_message { - print_error "\nScript interrupted. Exiting.....\n" - # Add any cleanup code here - log_message "Script interrupted and exited" - exit 1 -} - -# Function to log messages -function log_message { - echo "$(date): $1" >> "$LOG_FILE" -} - -# Functions for colored/bold output -function print_error { - echo -e "${RED}$1${NC}" -} - -function print_success { - echo -e "${GREEN}$1${NC}" -} - -function print_warning { - echo -e "${YELLOW}$1${NC}" -} - -function print_info { - echo -e "${BLUE}$1${NC}" -} - -function print_bold_blue { - echo -e "${BLUE}${BOLD}$1${NC}" -} - -# Function to ask for confirmation -function ask_confirmation { - while true; do - read -p "$(print_warning "$1 (y/n): ")" -n 1 -r - echo - if [[ $REPLY =~ ^[Yy]$ ]]; then - return 0 # User confirmed - elif [[ $REPLY =~ ^[Nn]$ ]]; then - print_error "Operation cancelled.\n" - return 1 # User cancelled - else - print_error "Invalid input. Please answer y or n.\n" - fi - done -} - -# Function to run a command with retry and confirmation -function run_command { - local cmd="$1" - local description="$2" - if ask_confirmation "Do you want to run: $description"; then - while ! eval "$cmd"; do - print_error "Command failed." - if ! ask_confirmation "Retry $description?"; then - print_warning "$description was not completed." - return 1 - fi - done - print_success "$description completed successfully." - return 0 - else - print_warning "$description was skipped." - return 1 - fi -} - -# Function to run a script with retry and confirmation -function run_script { - local script="$SCRIPT_DIR/$1" - local description="$2" - if ask_confirmation "Do you want to execute '$description' script"; then - while ! bash "$script"; do - print_error "$description script failed." - if ! ask_confirmation "Retry $description"; then - return 1 # User chose not to retry - fi - done - print_success "$description completed successfully.\n" - else - return 1 # User chose not to run the script - fi -} -#-------------------------------------------------------------- - # Script start log_message "Installation started" print_bold_blue "\nSimple Hyprland\n" # Check if running as root -if [ "$EUID" -ne 0 ]; then - print_error "Please run as root" - log_message "Script not run as root. Exiting." - exit 1 -fi +check_root # Check if OS is Arch Linux -if [ -f /etc/os-release ]; then - . /etc/os-release - if [[ "$ID" != "arch" ]]; then - print_warning "This script is designed for Arch Linux. Your system: $PRETTY_NAME" - if ! ask_confirmation "Continue anyway?"; then - log_message "Installation cancelled due to unsupported OS" - exit 1 - fi - else - print_success "Arch Linux detected. Proceeding with installation.\n" - log_message "Arch Linux detected. Installation proceeding." - fi -else - print_error "Unable to determine OS. /etc/os-release not found." - if ! ask_confirmation "Continue anyway?"; then - log_message "Installation cancelled due to unknown OS" - exit 1 - fi -fi +check_os # Run child scripts run_script "prerequisites.sh" "Prerequisites Setup" -run_script "hypr.sh" "Hyprland & Critical Softwares Setup" -run_script "utilities.sh" "Basic Utilities & Configs" -run_script "theming.sh" "Themes and Tools" -run_script "final.sh" "Final" +# run_script "hypr.sh" "Hyprland & Critical Softwares Setup" +# run_script "utilities.sh" "Basic Utilities & Configs" +# run_script "theming.sh" "Themes and Tools" +# run_script "final.sh" "Final" -print_bold_blue "Setup Complete\n" +print_bold_blue "🌟 Setup Complete\n" log_message "Installation completed successfully" From 52149c0ed2c9c166b2401240dfafca18074f4e0a Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Mon, 5 Aug 2024 09:35:12 +0530 Subject: [PATCH 05/32] completed prequisites --- scripts/prerequisites.sh | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/scripts/prerequisites.sh b/scripts/prerequisites.sh index 91e4fd0..93d8aaf 100755 --- a/scripts/prerequisites.sh +++ b/scripts/prerequisites.sh @@ -3,11 +3,27 @@ # Get the directory of the current script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -# Source the master script -source "$SCRIPT_DIR/install.sh" +# Source helper file +source $SCRIPT_DIR/helper.sh log_message "Installation started for prerequisites section" -print_info "Starting prerequisites setup..." +print_info "\nStarting prerequisites setup..." +run_command "pacman -Syu --noconfirm" "Updating package database and upgrading packages" "no" + +# run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Installing YAY" "no" + +run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio" "no" + +run_command "pacman -S --noconfirm ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-firacode-nerd ttf-iosevka-nerd ttf-iosevkaterm-nerd ttf-jetbrains-mono-nerd ttf-jetbrains-mono ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-mono" "Installing Nerd Fonts and Symbols" "no" + +run_command "pacman -S --noconfirm sddm && systemctl enable sddm.service" "Install and enable SDDM (Recommended)" "yes" + +run_command "yay -S --sudoloop --noconfirm brave-bin" "Install Brave Browser" "yes" "no" + +run_command "pacman -S --noconfirm kitty" "Install Kitty (Recommended)" "yes" + +run_command "pacman -S --noconfirm nano" "Install nano" "yes" + +run_command "pacman -S --noconfirm tar" "Installing tar for extracting files" "no" -run_command "sudo pacman -Syyu --noconfirm" "Update package database and upgrade packages" From 05e37195ebe1c68ffcb8d8a17cf42957a65e33d2 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Mon, 5 Aug 2024 09:55:43 +0530 Subject: [PATCH 06/32] hypr essentials complete --- scripts/hypr.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/hypr.sh diff --git a/scripts/hypr.sh b/scripts/hypr.sh new file mode 100644 index 0000000..52ece43 --- /dev/null +++ b/scripts/hypr.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Source helper file +source $SCRIPT_DIR/helper.sh + +log_message "Installation started for hypr section" +print_info "\nStarting hypr setup..." + +run_command "pacman -S hyprland" "Install Hyprland" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config" "no" + +run_command "pacman -S xdg-desktop-portal-hyprland" "Install Desktop portal" "no" + +run_command "pacman -S polkit-kde-agent" "Install KDE Polkit" "no" + +run_command "pacman -S qt5-wayland qt6-wayland" "Install QT support on wayland" "no" + +run_command "pacman -S dunst" "Install notification-daemon and copy config (Recommended)" "yes" +run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" \ No newline at end of file From 786b6acff26f5854a35c0bbdbcb1ff1bd24ed865 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Tue, 6 Aug 2024 00:16:42 +0530 Subject: [PATCH 07/32] Added commands from repo --- scripts/final.sh | 4 ++++ scripts/hypr.sh | 14 +++++++------- scripts/theming.sh | 24 ++++++++++++++++++++++++ scripts/utilities.sh | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 scripts/final.sh create mode 100644 scripts/theming.sh create mode 100644 scripts/utilities.sh diff --git a/scripts/final.sh b/scripts/final.sh new file mode 100644 index 0000000..2411738 --- /dev/null +++ b/scripts/final.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "Hello World" +# Add link to the repo here and tell about keybindings \ No newline at end of file diff --git a/scripts/hypr.sh b/scripts/hypr.sh index 52ece43..392dca7 100644 --- a/scripts/hypr.sh +++ b/scripts/hypr.sh @@ -9,14 +9,14 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for hypr section" print_info "\nStarting hypr setup..." -run_command "pacman -S hyprland" "Install Hyprland" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config" "no" +run_command "pacman -S --noconfirm hyprland" "Install Hyprland" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config (Must)" "yes" -run_command "pacman -S xdg-desktop-portal-hyprland" "Install Desktop portal" "no" +run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install Desktop portal" "no" -run_command "pacman -S polkit-kde-agent" "Install KDE Polkit" "no" +run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit" "no" -run_command "pacman -S qt5-wayland qt6-wayland" "Install QT support on wayland" "no" +run_command "pacman -S --noconfirm dunst" "Install notification-daemon (Recommended)" "yes" +run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" -run_command "pacman -S dunst" "Install notification-daemon and copy config (Recommended)" "yes" -run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" \ No newline at end of file +run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "no" \ No newline at end of file diff --git a/scripts/theming.sh b/scripts/theming.sh new file mode 100644 index 0000000..edea68c --- /dev/null +++ b/scripts/theming.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Source helper file +source $SCRIPT_DIR/helper.sh + +log_message "Installation started for theming section" +print_info "\nStarting theming setup..." + +run_command "pacman -S --noconfirm nwg-look" "GTK settings" "yes" + +run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "QT Settings" "yes" + +run_command "tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Catppuccin GTK Theme" "yes" + +run_command "tar -xvf ~/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Tela icon theme" "yes" + +run_command "yay -S kvantum-theme-catppuccin-git" "Catppuccin kvantum Theme" "yes" + +run_command "cp -r ~/simple-hyprland/configs/kitty ~/.config/" "Catppuccin kitty theme" "yes" + +# Add instructions to configure theming here diff --git a/scripts/utilities.sh b/scripts/utilities.sh new file mode 100644 index 0000000..aa383aa --- /dev/null +++ b/scripts/utilities.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Source helper file +source $SCRIPT_DIR/helper.sh + +log_message "Installation started for utilities section" +print_info "\nStarting utilities setup..." + +run_command "pacman -S --noconfirm waybar" "Install Waybar" "yes" +run_command "cp -r ~/simple-hyprland/configs/waybar ~/.config/" "Copy Waybar config" "yes" + +run_command "yay -S tofi" "Install tofi" "yes" "no" +run_command "cp -r ~/simple-hyprland/configs/tofi ~/.config/" "Copy tofi config(s)" "yes" + +run_command "pacman -S cliphist" "Install cliphist" "yes" + +run_command "yay -S swww" "yes" "no" +run_command "cp -r ~/simple-hyprland/assets/backgrounds ~/.config/assets/backgrounds/" "Copy sample wallpapers (Recommended)" "yes" + +run_command "yay -S hyprpicker" "yes" "no" + +run_command "yay -S hyprlock" "yes" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hyprlock.conf ~/.config/hypr/" "Copy hyprlock config" "yes" + +run_command "yay -S hypridle" "yes" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hypridle.conf ~/.config/hypr/" "Copy hypridle config" "yes" + +run_command "yay -S wlogout" "yes" "no" +run_command "cp -r ~/simple-hyprland/configs/wlogout ~/.config/ && cp -r ~/simple-hyprland/assets/wlogout ~/.config/assets/ # copying assets" "Copy hypridle config" "yes" + +run_command "yay -S grimblast" "yes" "no" \ No newline at end of file From ec75c01db39fbdb96b7eecfa7899cd733051b56b Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Tue, 6 Aug 2024 00:25:08 +0530 Subject: [PATCH 08/32] fixed yay commands --- scripts/theming.sh | 2 +- scripts/utilities.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/theming.sh b/scripts/theming.sh index edea68c..c809a8f 100644 --- a/scripts/theming.sh +++ b/scripts/theming.sh @@ -17,7 +17,7 @@ run_command "tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C run_command "tar -xvf ~/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Tela icon theme" "yes" -run_command "yay -S kvantum-theme-catppuccin-git" "Catppuccin kvantum Theme" "yes" +run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Catppuccin kvantum Theme" "yes" run_command "cp -r ~/simple-hyprland/configs/kitty ~/.config/" "Catppuccin kitty theme" "yes" diff --git a/scripts/utilities.sh b/scripts/utilities.sh index aa383aa..813e6f3 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -12,23 +12,23 @@ print_info "\nStarting utilities setup..." run_command "pacman -S --noconfirm waybar" "Install Waybar" "yes" run_command "cp -r ~/simple-hyprland/configs/waybar ~/.config/" "Copy Waybar config" "yes" -run_command "yay -S tofi" "Install tofi" "yes" "no" +run_command "yay -S --sudoloop --noconfirm tofi" "Install tofi" "yes" "no" run_command "cp -r ~/simple-hyprland/configs/tofi ~/.config/" "Copy tofi config(s)" "yes" run_command "pacman -S cliphist" "Install cliphist" "yes" -run_command "yay -S swww" "yes" "no" +run_command "yay -S --sudoloop --noconfirm swww" "yes" "no" run_command "cp -r ~/simple-hyprland/assets/backgrounds ~/.config/assets/backgrounds/" "Copy sample wallpapers (Recommended)" "yes" -run_command "yay -S hyprpicker" "yes" "no" +run_command "yay -S --sudoloop --noconfirm hyprpicker" "yes" "no" -run_command "yay -S hyprlock" "yes" "no" +run_command "yay -S --sudoloop --noconfirm hyprlock" "yes" "no" run_command "cp ~/simple-hyprland/configs/hypr/hyprlock.conf ~/.config/hypr/" "Copy hyprlock config" "yes" -run_command "yay -S hypridle" "yes" "no" +run_command "yay -S --sudoloop --noconfirm hypridle" "yes" "no" run_command "cp ~/simple-hyprland/configs/hypr/hypridle.conf ~/.config/hypr/" "Copy hypridle config" "yes" -run_command "yay -S wlogout" "yes" "no" +run_command "yay -S --sudoloop --noconfirm wlogout" "yes" "no" run_command "cp -r ~/simple-hyprland/configs/wlogout ~/.config/ && cp -r ~/simple-hyprland/assets/wlogout ~/.config/assets/ # copying assets" "Copy hypridle config" "yes" -run_command "yay -S grimblast" "yes" "no" \ No newline at end of file +run_command "yay -S --sudoloop --noconfirm grimblast" "yes" "no" \ No newline at end of file From 6e41b1721f600935b97113475db0f79cb23d5a6c Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:00:09 +0530 Subject: [PATCH 09/32] visual Changes --- scripts/helper.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/helper.sh b/scripts/helper.sh index f1a49cc..e6b26fc 100755 --- a/scripts/helper.sh +++ b/scripts/helper.sh @@ -3,7 +3,7 @@ # Color codes RED='\033[0;31m' GREEN='\033[0;32m' -YELLOW='\033[1;33m' +YELLOW='\033[0;33m' BLUE='\033[0;34m' BOLD='\033[1m' NC='\033[0m' # No Color @@ -57,10 +57,10 @@ function ask_confirmation { return 0 # User confirmed elif [[ $REPLY =~ ^[Nn]$ ]]; then log_message "Operation cancelled by user." - print_error "Operation cancelled.\n" + print_error "Operation cancelled." return 1 # User cancelled else - print_error "Invalid input. Please answer y or n.\n" + print_error "Invalid input. Please answer y or n." fi done } @@ -75,8 +75,8 @@ function run_command { log_message "Attempting to run: $description" if [[ "$ask_confirm" == "yes" ]]; then - if ! ask_confirmation "Do you want to $description"; then - print_warning "$description was skipped." + if ! ask_confirmation "\n$description"; then + print_info "$description was skipped." log_message "$description was skipped by user choice." return 1 fi @@ -116,14 +116,14 @@ function run_command { function run_script { local script="$SCRIPT_DIR/$1" local description="$2" - if ask_confirmation "Do you want to execute '$description' script"; then + if ask_confirmation "\nExecute '$description' script"; then while ! bash "$script"; do print_error "$description script failed." if ! ask_confirmation "Retry $description"; then return 1 # User chose not to retry fi done - print_success "\n$description completed successfully.\n" + print_success "\n$description completed successfully." else return 1 # User chose not to run the script fi @@ -151,7 +151,7 @@ function check_os { exit 1 fi else - print_success "Arch Linux detected. Proceeding with installation.\n" + print_success "Arch Linux detected. Proceeding with installation." log_message "Arch Linux detected. Installation proceeding." fi else From 16ce4a32290121ef93841f70a9b425b94ea595fd Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:00:43 +0530 Subject: [PATCH 10/32] refactoring --- scripts/prerequisites.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/prerequisites.sh b/scripts/prerequisites.sh index 93d8aaf..bc6bcf4 100755 --- a/scripts/prerequisites.sh +++ b/scripts/prerequisites.sh @@ -9,13 +9,13 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for prerequisites section" print_info "\nStarting prerequisites setup..." -run_command "pacman -Syu --noconfirm" "Updating package database and upgrading packages" "no" +run_command "pacman -Syyu --noconfirm" "Update package database and upgrade packages (Recommended)" "yes" # no -# run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Installing YAY" "no" +run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)" "yes" # no -run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio" "no" +run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio (Recommended)" "yes" -run_command "pacman -S --noconfirm ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-firacode-nerd ttf-iosevka-nerd ttf-iosevkaterm-nerd ttf-jetbrains-mono-nerd ttf-jetbrains-mono ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-mono" "Installing Nerd Fonts and Symbols" "no" +run_command "pacman -S --noconfirm ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-firacode-nerd ttf-iosevka-nerd ttf-iosevkaterm-nerd ttf-jetbrains-mono-nerd ttf-jetbrains-mono ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-mono" "Installing Nerd Fonts and Symbols (Recommended)" "yes" run_command "pacman -S --noconfirm sddm && systemctl enable sddm.service" "Install and enable SDDM (Recommended)" "yes" @@ -25,5 +25,6 @@ run_command "pacman -S --noconfirm kitty" "Install Kitty (Recommended)" "yes" run_command "pacman -S --noconfirm nano" "Install nano" "yes" -run_command "pacman -S --noconfirm tar" "Installing tar for extracting files" "no" +run_command "pacman -S --noconfirm tar" "Install tar for extracting files (Must)" "yes" +echo "------------------------------------------------------------------------" \ No newline at end of file From 12516a482b95eb7f6011c209353cc2cc54eb8514 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:01:40 +0530 Subject: [PATCH 11/32] command and description fixes --- scripts/hypr.sh | 14 ++++++++------ scripts/theming.sh | 21 ++++++++++++++------- scripts/utilities.sh | 30 ++++++++++++++++-------------- 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/scripts/hypr.sh b/scripts/hypr.sh index 392dca7..49224f7 100644 --- a/scripts/hypr.sh +++ b/scripts/hypr.sh @@ -9,14 +9,16 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for hypr section" print_info "\nStarting hypr setup..." -run_command "pacman -S --noconfirm hyprland" "Install Hyprland" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config (Must)" "yes" +run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes" +run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config (Must)" "yes" #no -run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install Desktop portal" "no" +run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG desktop portal for Hyprland" "yes" -run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit" "no" +run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit agent for authentication dialogs" "yes" -run_command "pacman -S --noconfirm dunst" "Install notification-daemon (Recommended)" "yes" +run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon (Recommended)" "yes" run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" -run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "no" \ No newline at end of file +run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "yes" + +echo "------------------------------------------------------------------------" \ No newline at end of file diff --git a/scripts/theming.sh b/scripts/theming.sh index c809a8f..1ccd89b 100644 --- a/scripts/theming.sh +++ b/scripts/theming.sh @@ -9,16 +9,23 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for theming section" print_info "\nStarting theming setup..." -run_command "pacman -S --noconfirm nwg-look" "GTK settings" "yes" +run_command "pacman -S --noconfirm nwg-look" "Install nwg-look for GTK theme management" "yes" -run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "QT Settings" "yes" +run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "Install Qt5, Qt6 Settings, and Kvantum theme engines" "yes" -run_command "tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Catppuccin GTK Theme" "yes" +run_command "tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes" -run_command "tar -xvf ~/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Tela icon theme" "yes" +run_command "tar -xvf ~/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes" -run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Catppuccin kvantum Theme" "yes" +run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Install Catppuccin theme for Kvantum" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/kitty ~/.config/" "Catppuccin kitty theme" "yes" +run_command "cp -r ~/simple-hyprland/configs/kitty ~/.config/" "Copy Catppuccin theme configuration for Kitty terminal" "yes" -# Add instructions to configure theming here +# Add instructions to configure theming +print_info "\nPost-installation instructions:" +print_bold_blue "Set themes and icons:" +echo " - Run 'nwg-look' and set the global GTK and icon theme" +echo " - Open 'kvantummanager' (run with sudo for system-wide changes) to select and apply the Catppuccin theme" +echo " - Open 'qt6ct' to set the icon theme" + +echo "------------------------------------------------------------------------" \ No newline at end of file diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 813e6f3..70602f2 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -9,26 +9,28 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for utilities section" print_info "\nStarting utilities setup..." -run_command "pacman -S --noconfirm waybar" "Install Waybar" "yes" +run_command "pacman -S --noconfirm waybar" "Install Waybar - Status Bar" "yes" run_command "cp -r ~/simple-hyprland/configs/waybar ~/.config/" "Copy Waybar config" "yes" -run_command "yay -S --sudoloop --noconfirm tofi" "Install tofi" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/tofi ~/.config/" "Copy tofi config(s)" "yes" +run_command "yay -S --sudoloop --noconfirm tofi" "Install Tofi - Application Launcher" "yes" "no" +run_command "cp -r ~/simple-hyprland/configs/tofi ~/.config/" "Copy Tofi config(s)" "yes" -run_command "pacman -S cliphist" "Install cliphist" "yes" +run_command "pacman -S --noconfirm cliphist" "Install Cliphist - Clipboard Manager" "yes" -run_command "yay -S --sudoloop --noconfirm swww" "yes" "no" -run_command "cp -r ~/simple-hyprland/assets/backgrounds ~/.config/assets/backgrounds/" "Copy sample wallpapers (Recommended)" "yes" +run_command "yay -S --sudoloop --noconfirm swww" "Install SWWW for wallpaper management" "yes" "no" +run_command "cp -r ~/simple-hyprland/assets/backgrounds ~/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" -run_command "yay -S --sudoloop --noconfirm hyprpicker" "yes" "no" +run_command "yay -S --sudoloop --noconfirm hyprpicker" "Install Hyprpicker - Color Picker" "yes" "no" -run_command "yay -S --sudoloop --noconfirm hyprlock" "yes" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hyprlock.conf ~/.config/hypr/" "Copy hyprlock config" "yes" +run_command "yay -S --sudoloop --noconfirm hyprlock" "Install Hyprlock - Screen Locker (Must)" "yes" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hyprlock.conf ~/.config/hypr/" "Copy Hyprlock config" "yes" -run_command "yay -S --sudoloop --noconfirm hypridle" "yes" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hypridle.conf ~/.config/hypr/" "Copy hypridle config" "yes" +run_command "yay -S --sudoloop --noconfirm wlogout" "Install Wlogout - Session Manager" "yes" "no" +run_command "cp -r ~/simple-hyprland/configs/wlogout ~/.config/ && cp -r ~/simple-hyprland/assets/wlogout ~/.config/assets/" "Copy Wlogout config and assets" "yes" -run_command "yay -S --sudoloop --noconfirm wlogout" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/wlogout ~/.config/ && cp -r ~/simple-hyprland/assets/wlogout ~/.config/assets/ # copying assets" "Copy hypridle config" "yes" +run_command "yay -S --sudoloop --noconfirm grimblast" "Install Grimblast - Screenshot tool" "yes" "no" -run_command "yay -S --sudoloop --noconfirm grimblast" "yes" "no" \ No newline at end of file +run_command "yay -S --sudoloop --noconfirm hypridle" "Install Hypridle for idle management (Must)" "yes" "no" +run_command "cp ~/simple-hyprland/configs/hypr/hypridle.conf ~/.config/hypr/" "Copy Hypridle config" "yes" + +echo "------------------------------------------------------------------------" \ No newline at end of file From 5e5d72f15ec5643dd0d4dff602d96b4a4bdc5115 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:02:24 +0530 Subject: [PATCH 12/32] uncomment scripts --- scripts/install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0fe4c7d..f695d50 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -11,7 +11,8 @@ trap 'trap_message' INT TERM # Script start log_message "Installation started" -print_bold_blue "\nSimple Hyprland\n" +print_bold_blue "\nSimple Hyprland" +echo "---------------" # Check if running as root check_root @@ -21,10 +22,10 @@ check_os # Run child scripts run_script "prerequisites.sh" "Prerequisites Setup" -# run_script "hypr.sh" "Hyprland & Critical Softwares Setup" -# run_script "utilities.sh" "Basic Utilities & Configs" -# run_script "theming.sh" "Themes and Tools" -# run_script "final.sh" "Final" +run_script "hypr.sh" "Hyprland & Critical Softwares Setup" +run_script "utilities.sh" "Basic Utilities & Configs Setup" +run_script "theming.sh" "Themes and Tools Setup" +run_script "final.sh" "Final Setup" -print_bold_blue "🌟 Setup Complete\n" +print_bold_blue "\n🌟 Setup Complete\n" log_message "Installation completed successfully" From dbca84c52394653a5bd791a56606e00a97842beb Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:02:46 +0530 Subject: [PATCH 13/32] final notes --- scripts/final.sh | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/scripts/final.sh b/scripts/final.sh index 2411738..8a9d481 100644 --- a/scripts/final.sh +++ b/scripts/final.sh @@ -1,4 +1,27 @@ #!/bin/bash -echo "Hello World" -# Add link to the repo here and tell about keybindings \ No newline at end of file +# Get the directory of the current script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Source helper file +source $SCRIPT_DIR/helper.sh + +log_message "Final setup script started" +print_bold_blue "\nCongratulations! Your Simple Hyprland setup is complete!" + +print_bold_blue "\nRepository Information:" +echo " - GitHub Repository: https://github.com/gaurav210233/simple-hyprland" +echo " - If you found this repo helpful, please consider giving it a star on GitHub!" + +print_bold_blue "\nContribute:" +echo " - We welcome contributions! Whether it's bug fixes, new features, or documentation improvements." +echo " - Feel free to open issues, submit pull requests, or provide feedback." +echo " - Every contribution, big or small, is valuable to the community." + +print_bold_blue "\nTroubleshooting:" +echo " - If you encounter any issues, please check the GitHub issues section." +echo " - Don't hesitate to open a new issue if you can't find a solution to your problem." + +print_success "\nEnjoy your new Hyprland environment!" + +echo "------------------------------------------------------------------------" \ No newline at end of file From 19557dc2a5beed4fa4d943c0c3444ff4cabcdc2d Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:14:10 +0530 Subject: [PATCH 14/32] better structure --- scripts/{ => installer}/final.sh | 0 scripts/{ => installer}/helper.sh | 0 scripts/{ => installer}/hypr.sh | 0 scripts/{ => installer}/install.sh | 0 scripts/{ => installer}/prerequisites.sh | 0 scripts/{ => installer}/theming.sh | 0 scripts/{ => installer}/utilities.sh | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename scripts/{ => installer}/final.sh (100%) rename scripts/{ => installer}/helper.sh (100%) rename scripts/{ => installer}/hypr.sh (100%) rename scripts/{ => installer}/install.sh (100%) rename scripts/{ => installer}/prerequisites.sh (100%) rename scripts/{ => installer}/theming.sh (100%) rename scripts/{ => installer}/utilities.sh (100%) diff --git a/scripts/final.sh b/scripts/installer/final.sh similarity index 100% rename from scripts/final.sh rename to scripts/installer/final.sh diff --git a/scripts/helper.sh b/scripts/installer/helper.sh similarity index 100% rename from scripts/helper.sh rename to scripts/installer/helper.sh diff --git a/scripts/hypr.sh b/scripts/installer/hypr.sh similarity index 100% rename from scripts/hypr.sh rename to scripts/installer/hypr.sh diff --git a/scripts/install.sh b/scripts/installer/install.sh similarity index 100% rename from scripts/install.sh rename to scripts/installer/install.sh diff --git a/scripts/prerequisites.sh b/scripts/installer/prerequisites.sh similarity index 100% rename from scripts/prerequisites.sh rename to scripts/installer/prerequisites.sh diff --git a/scripts/theming.sh b/scripts/installer/theming.sh similarity index 100% rename from scripts/theming.sh rename to scripts/installer/theming.sh diff --git a/scripts/utilities.sh b/scripts/installer/utilities.sh similarity index 100% rename from scripts/utilities.sh rename to scripts/installer/utilities.sh From 2afb86b822c7a3c6e1193dc80ed6f9641ae7dc02 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Wed, 7 Aug 2024 09:22:28 +0530 Subject: [PATCH 15/32] minor changes --- configs/hypr/hyprlock.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/hypr/hyprlock.conf b/configs/hypr/hyprlock.conf index 34d47d9..72572ea 100644 --- a/configs/hypr/hyprlock.conf +++ b/configs/hypr/hyprlock.conf @@ -39,7 +39,7 @@ label { color = rgba(a6adc8) font_size = 55 font_family = Fira Semibold - position = -100, -40 + position = -100, 40 halign = right valign = bottom shadow_passes = 5 From c8f46c1b47cd8af9bfca4265209aca9bcdcfbf13 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 08:42:47 +0530 Subject: [PATCH 16/32] added script instructions --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/README.md b/README.md index 59a5e13..ce97953 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,80 @@ If you're new to this guide, you can start from the [Prerequisites section](docs ## Compatibility āš™ļø While this guide is created with [Arch Linux](https://archlinux.org/) in mind, it can also be helpful for users of other distributions who are familiar with their package management and system tweaking. +## Quick Installation Script šŸš€ + +1. Clone the repository to your home folder: + ``` + git clone https://github.com/gaurav210233/simple-hyprland.git ~/simple-hyprland + ``` +2. Navigate to the installer directory: + ``` + cd ~/simple-hyprland/scripts/installer + ``` +3. Run the installation script with sudo: + ``` + sudo sh install.sh + ``` +#### Important Notes: + +- This script is user-centric and allows you to choose which components to install. +- While the script offers flexibility, it is recommend to installing all components for the best experience, as this is already a minimal setup. +- The installation process follows the same flow as the documentation, ensuring a structured and educational approach. +- Although designed for Arch Linux, users of Arch-based distributions may also find this script helpful. + +> **Note for Newcomers**: Although this script enables rapid setup, it's highly recommended to read through the documentation for those new to Hyprland. Understanding each step will greatly enhance your ability to customize and troubleshoot your environment. + + +### Key Bindings šŸŽ¹ + +After installation, you'll want to familiarize yourself with the default key bindings. Here are some essential shortcuts to get you started: + +#### General +- **Super + T**: Open the terminal (`$terminal`). +- **Super + B**: Open the browser (`$browser`). +- **Super + O**: Open notes application (`$notes`). +- **Super + C**: Open the primary editor (`$editor`). +- **Super + S**: Open the alternative editor (`$editor-alt`). +- **Super + F**: Open the file manager (`$fileManager`). +- **Super + A**: Open the application menu (`$menu`). +- **Super + M**: Exit Hyprland. + +#### Window Management & Workspace Navigation +- **Super + Q**: Close the active window. +- **Super + W**: Toggle floating mode for the active window. +- **Super + J**: Toggle split mode in the Dwindle layout. +- **SUPER + [Arrow Keys]**: Move focus between windows +- **SUPER + SHIFT + [Arrow Keys]**: Move active window +- **SUPER + CTRL + [Arrow Keys]**: Resize active window +- **SUPER + [1-9]**: Switch to workspace 1-9 +- **SUPER + SHIFT + [1-9]**: Move active window to workspace 1-9 + +#### Screen Brightness, Volume and Media Control +- **Brightness Up**: Increase the screen brightness by 5%. +- **Brightness Down**: Decrease the screen brightness by 5%. +- **Volume Up**: Increase the volume by 5%. +- **Volume Down**: Decrease the volume by 5%. +- **Mic Mute**: Mute the microphone. +- **Audio Mute**: Mute the audio. +- **Play/Pause**: Toggle play/pause for media. +- **Next Track**: Skip to the next track. +- **Previous Track**: Go back to the previous track. + +#### Miscellaneous +- **SUPER + L**: Lock screen +- **Super + V**: Open the clipboard history and paste the selected item. +- **Super + P**: Open the color picker and copy the selected color to the clipboard. +- **Super + L**: Lock the screen. +- **Super + Escape**: Open the logout menu. +- **Ctrl + Escape**: Toggle the Waybar (kill if running, start if not). +- **Print Screen**: Take a screenshot of the entire screen and copy it to the clipboard. +- **Super + Print Screen**: Take a screenshot of the active window and copy it to the clipboard. +- **Super + Alt + Print Screen**: Select an area to take a screenshot and copy it to the clipboard. + + +Make sure to have applications installed corresponding to the binds. Feel free to customize these keybindings to better suit your needs. You can customize these and add more in your Hyprland configuration file (`~/.config/hypr/hyprland.conf`). + + ## Credits šŸ™ Many configuration parts, themes, and scripts in this guide are sourced from the community. I extend my thanks to all contributors, especially the [Hyprland project](https://github.com/hyprwm/Hyprland) and other cool repositories like [hyprdots](https://github.com/prasanthrangan/hyprdots). If you find that credit has not been given where due, please feel free to open a Pull Request (PR). From 8381794b2f3cfa454cf83740e9f0a8c25ffe11a8 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 08:46:14 +0530 Subject: [PATCH 17/32] fixes --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index ce97953..fa5353a 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,8 @@ After installation, you'll want to familiarize yourself with the default key bin - **Super + Print Screen**: Take a screenshot of the active window and copy it to the clipboard. - **Super + Alt + Print Screen**: Select an area to take a screenshot and copy it to the clipboard. - Make sure to have applications installed corresponding to the binds. Feel free to customize these keybindings to better suit your needs. You can customize these and add more in your Hyprland configuration file (`~/.config/hypr/hyprland.conf`). - ## Credits šŸ™ Many configuration parts, themes, and scripts in this guide are sourced from the community. I extend my thanks to all contributors, especially the [Hyprland project](https://github.com/hyprwm/Hyprland) and other cool repositories like [hyprdots](https://github.com/prasanthrangan/hyprdots). If you find that credit has not been given where due, please feel free to open a Pull Request (PR). From e197d9b0767b0b6759ff35d207952a5ca9bc911f Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 08:47:53 +0530 Subject: [PATCH 18/32] minor fixes --- configs/hypr/hyprland.conf | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/configs/hypr/hyprland.conf b/configs/hypr/hyprland.conf index 839ef95..a364815 100644 --- a/configs/hypr/hyprland.conf +++ b/configs/hypr/hyprland.conf @@ -65,7 +65,6 @@ exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRE # exec-once = nm-applet & # exec-once = waybar & hyprpaper & firefox - ############################# ### ENVIRONMENT VARIABLES ### ############################# @@ -202,7 +201,6 @@ misc { vrr = 0 } - ############# ### INPUT ### ############# @@ -238,7 +236,6 @@ device { sensitivity = -0.5 } - #################### ### KEYBINDINGSS ### #################### @@ -363,7 +360,6 @@ bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%- # windowrule = float, ^(kitty)$ windowrule = float, ^(jome)$ - # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = opacity 0.90 0.90,class:^(Thorium-browser)$ @@ -402,17 +398,9 @@ windowrulev2 = float,class:^(nm-applet)$ windowrulev2 = float,class:^(nm-connection-editor)$ windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$ - - # windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. # layerrule = blur,waybar layerrule = ignorezero,tofi layerrule = ignorezero, dunst -layerrule = blur,dunst - -windowrule=float, com-group_finity-mascot-Main -windowrule=noblur, com-group_finity-mascot-Main -windowrule=nofocus, com-group_finity-mascot-Main -windowrule=noshadow, com-group_finity-mascot-Main -windowrule=noborder, com-group_finity-mascot-Main \ No newline at end of file +layerrule = blur,dunst \ No newline at end of file From 833ac4c629c4ad4a485298ba1de96396c25184c3 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:05:17 +0530 Subject: [PATCH 19/32] added more context --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa5353a..c5103f4 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ While this guide is created with [Arch Linux](https://archlinux.org/) in mind, i ``` #### Important Notes: -- This script is user-centric and allows you to choose which components to install. +- This script is user-centric and allows you to choose which components to install (Everything is asked, even for the core env). - While the script offers flexibility, it is recommend to installing all components for the best experience, as this is already a minimal setup. - The installation process follows the same flow as the documentation, ensuring a structured and educational approach. - Although designed for Arch Linux, users of Arch-based distributions may also find this script helpful. From 6483a4f7e9f0e41f7d64e06bb32637bc9c6c8bdd Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:06:09 +0530 Subject: [PATCH 20/32] more concise output --- scripts/installer/helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer/helper.sh b/scripts/installer/helper.sh index e6b26fc..c589c95 100755 --- a/scripts/installer/helper.sh +++ b/scripts/installer/helper.sh @@ -76,7 +76,7 @@ function run_command { if [[ "$ask_confirm" == "yes" ]]; then if ! ask_confirmation "\n$description"; then - print_info "$description was skipped." + # print_info "$description was skipped." log_message "$description was skipped by user choice." return 1 fi From 0534ee60d68d0ee16e2e722d20b088d6a0eb0dde Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:06:38 +0530 Subject: [PATCH 21/32] more context --- scripts/installer/prerequisites.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installer/prerequisites.sh b/scripts/installer/prerequisites.sh index bc6bcf4..2617001 100755 --- a/scripts/installer/prerequisites.sh +++ b/scripts/installer/prerequisites.sh @@ -11,7 +11,7 @@ print_info "\nStarting prerequisites setup..." run_command "pacman -Syyu --noconfirm" "Update package database and upgrade packages (Recommended)" "yes" # no -run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)" "yes" # no +run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)/Breaks the script" "yes" # no run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio (Recommended)" "yes" @@ -25,6 +25,6 @@ run_command "pacman -S --noconfirm kitty" "Install Kitty (Recommended)" "yes" run_command "pacman -S --noconfirm nano" "Install nano" "yes" -run_command "pacman -S --noconfirm tar" "Install tar for extracting files (Must)" "yes" +run_command "pacman -S --noconfirm tar" "Install tar for extracting files (Must)/needed for copying themes" "yes" echo "------------------------------------------------------------------------" \ No newline at end of file From a57ac87ad76d5fff25829415e22d9628f651090b Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:07:21 +0530 Subject: [PATCH 22/32] Added Recommendation --- scripts/installer/hypr.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/installer/hypr.sh b/scripts/installer/hypr.sh index 49224f7..7bb5494 100644 --- a/scripts/installer/hypr.sh +++ b/scripts/installer/hypr.sh @@ -8,6 +8,7 @@ source $SCRIPT_DIR/helper.sh log_message "Installation started for hypr section" print_info "\nStarting hypr setup..." +print_info "\nEverything is recommended to INSTALL" run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes" run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config (Must)" "yes" #no @@ -16,7 +17,7 @@ run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG des run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit agent for authentication dialogs" "yes" -run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon (Recommended)" "yes" +run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon" "yes" run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "yes" From 2a900e3390349d6747fa779cc7a068b44fb6fd20 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:07:41 +0530 Subject: [PATCH 23/32] made concise --- scripts/installer/final.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/installer/final.sh b/scripts/installer/final.sh index 8a9d481..02406eb 100644 --- a/scripts/installer/final.sh +++ b/scripts/installer/final.sh @@ -14,7 +14,6 @@ echo " - GitHub Repository: https://github.com/gaurav210233/simple-hyprland" echo " - If you found this repo helpful, please consider giving it a star on GitHub!" print_bold_blue "\nContribute:" -echo " - We welcome contributions! Whether it's bug fixes, new features, or documentation improvements." echo " - Feel free to open issues, submit pull requests, or provide feedback." echo " - Every contribution, big or small, is valuable to the community." From c7d176308237dc02bf43d87712c28d75b73b46d3 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 09:58:45 +0530 Subject: [PATCH 24/32] command fixes --- scripts/installer/hypr.sh | 4 +- scripts/installer/simple_hyprland_install.log | 88 +++++++++++++++++++ scripts/installer/theming.sh | 6 +- scripts/installer/utilities.sh | 12 +-- 4 files changed, 99 insertions(+), 11 deletions(-) create mode 100644 scripts/installer/simple_hyprland_install.log diff --git a/scripts/installer/hypr.sh b/scripts/installer/hypr.sh index 7bb5494..383ef49 100644 --- a/scripts/installer/hypr.sh +++ b/scripts/installer/hypr.sh @@ -11,14 +11,14 @@ print_info "\nStarting hypr setup..." print_info "\nEverything is recommended to INSTALL" run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes" -run_command "cp ~/simple-hyprland/configs/hypr/hyprland.conf ~/.config/hypr/" "Copy hyprland config (Must)" "yes" #no +run_command "cp /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" #no run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG desktop portal for Hyprland" "yes" run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit agent for authentication dialogs" "yes" run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon" "yes" -run_command "cp -r ~/simple-hyprland/configs/dunst ~/.config/" "Copy dunst config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/dunst /home/$SUDO_USER/.config/" "Copy dunst config" "yes" run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "yes" diff --git a/scripts/installer/simple_hyprland_install.log b/scripts/installer/simple_hyprland_install.log new file mode 100644 index 0000000..6bb53ee --- /dev/null +++ b/scripts/installer/simple_hyprland_install.log @@ -0,0 +1,88 @@ +Thu Aug 8 09:28:34 AM IST 2024: Installation started +Thu Aug 8 09:28:34 AM IST 2024: Original user is gaurav +Thu Aug 8 09:28:34 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:28:37 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:28:37 AM IST 2024: Installation started for theming section +Thu Aug 8 09:28:37 AM IST 2024: Attempting to run: Install nwg-look for GTK theme management +Thu Aug 8 09:28:38 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:28:38 AM IST 2024: Install nwg-look for GTK theme management was skipped by user choice. +Thu Aug 8 09:28:38 AM IST 2024: Attempting to run: Install Qt5, Qt6 Settings, and Kvantum theme engines +Thu Aug 8 09:28:39 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:28:39 AM IST 2024: Install Qt5, Qt6 Settings, and Kvantum theme engines was skipped by user choice. +Thu Aug 8 09:28:39 AM IST 2024: Attempting to run: Install Catppuccin Mocha GTK theme +Thu Aug 8 09:28:41 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:28:41 AM IST 2024: Command failed: tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/ +Thu Aug 8 09:31:47 AM IST 2024: Script interrupted and exited +Thu Aug 8 09:32:44 AM IST 2024: Installation started +Thu Aug 8 09:32:44 AM IST 2024: Original user is gaurav +Thu Aug 8 09:32:44 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:32:47 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:32:47 AM IST 2024: Installation started for theming section +Thu Aug 8 09:32:47 AM IST 2024: Attempting to run: Install nwg-look for GTK theme management +Thu Aug 8 09:32:49 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:32:49 AM IST 2024: Install nwg-look for GTK theme management was skipped by user choice. +Thu Aug 8 09:32:49 AM IST 2024: Attempting to run: Install Qt5, Qt6 Settings, and Kvantum theme engines +Thu Aug 8 09:32:50 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:32:50 AM IST 2024: Install Qt5, Qt6 Settings, and Kvantum theme engines was skipped by user choice. +Thu Aug 8 09:32:50 AM IST 2024: Attempting to run: Install Catppuccin Mocha GTK theme +Thu Aug 8 09:32:53 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:32:53 AM IST 2024: Install Catppuccin Mocha GTK theme completed successfully. +Thu Aug 8 09:32:53 AM IST 2024: Attempting to run: Install Tela Circle Dracula icon theme +Thu Aug 8 09:32:56 AM IST 2024: Script interrupted and exited +Thu Aug 8 09:47:14 AM IST 2024: Installation started +Thu Aug 8 09:47:14 AM IST 2024: Original user is gaurav +Thu Aug 8 09:47:14 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 09:47:20 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:33 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:47:33 AM IST 2024: Installation started for hypr section +Thu Aug 8 09:47:33 AM IST 2024: Attempting to run: Install Hyprland (Must) +Thu Aug 8 09:47:35 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:35 AM IST 2024: Install Hyprland (Must) was skipped by user choice. +Thu Aug 8 09:47:35 AM IST 2024: Attempting to run: Copy hyprland config (Must) +Thu Aug 8 09:47:35 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:35 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. +Thu Aug 8 09:47:35 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland +Thu Aug 8 09:47:37 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:37 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. +Thu Aug 8 09:47:37 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs +Thu Aug 8 09:47:38 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:38 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. +Thu Aug 8 09:47:38 AM IST 2024: Attempting to run: Install Dunst notification daemon +Thu Aug 8 09:47:39 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:47:39 AM IST 2024: Install Dunst notification daemon was skipped by user choice. +Thu Aug 8 09:47:39 AM IST 2024: Attempting to run: Copy dunst config +Thu Aug 8 09:47:40 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:47:40 AM IST 2024: Command failed: cp -r /home/gaurav/simple-hyprland/configs/dunst ~/.config/ +Thu Aug 8 09:48:15 AM IST 2024: Script interrupted and exited +Thu Aug 8 09:48:16 AM IST 2024: Installation started +Thu Aug 8 09:48:16 AM IST 2024: Original user is gaurav +Thu Aug 8 09:48:16 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 09:48:19 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:20 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:48:20 AM IST 2024: Installation started for hypr section +Thu Aug 8 09:48:20 AM IST 2024: Attempting to run: Install Hyprland (Must) +Thu Aug 8 09:48:20 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:20 AM IST 2024: Install Hyprland (Must) was skipped by user choice. +Thu Aug 8 09:48:20 AM IST 2024: Attempting to run: Copy hyprland config (Must) +Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:21 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. +Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland +Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:21 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. +Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs +Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:21 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. +Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install Dunst notification daemon +Thu Aug 8 09:48:23 AM IST 2024: Operation cancelled by user. +Thu Aug 8 09:48:23 AM IST 2024: Install Dunst notification daemon was skipped by user choice. +Thu Aug 8 09:48:23 AM IST 2024: Attempting to run: Copy dunst config +Thu Aug 8 09:48:24 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:48:24 AM IST 2024: Copy dunst config completed successfully. +Thu Aug 8 09:48:24 AM IST 2024: Attempting to run: Install QT support on wayland +Thu Aug 8 09:50:32 AM IST 2024: Script interrupted and exited diff --git a/scripts/installer/theming.sh b/scripts/installer/theming.sh index 1ccd89b..ab359fa 100644 --- a/scripts/installer/theming.sh +++ b/scripts/installer/theming.sh @@ -13,13 +13,13 @@ run_command "pacman -S --noconfirm nwg-look" "Install nwg-look for GTK theme man run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "Install Qt5, Qt6 Settings, and Kvantum theme engines" "yes" -run_command "tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes" +run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes" "no" -run_command "tar -xvf ~/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes" +run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes" "no" run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Install Catppuccin theme for Kvantum" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/kitty ~/.config/" "Copy Catppuccin theme configuration for Kitty terminal" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/kitty /home/$SUDO_USER/.config/" "Copy Catppuccin theme configuration for Kitty terminal" "yes" "no" # Add instructions to configure theming print_info "\nPost-installation instructions:" diff --git a/scripts/installer/utilities.sh b/scripts/installer/utilities.sh index 70602f2..25deb02 100644 --- a/scripts/installer/utilities.sh +++ b/scripts/installer/utilities.sh @@ -10,27 +10,27 @@ log_message "Installation started for utilities section" print_info "\nStarting utilities setup..." run_command "pacman -S --noconfirm waybar" "Install Waybar - Status Bar" "yes" -run_command "cp -r ~/simple-hyprland/configs/waybar ~/.config/" "Copy Waybar config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/waybar /home/$SUDO_USER/.config/" "Copy Waybar config" "yes" run_command "yay -S --sudoloop --noconfirm tofi" "Install Tofi - Application Launcher" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/tofi ~/.config/" "Copy Tofi config(s)" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/tofi /home/$SUDO_USER/.config/" "Copy Tofi config(s)" "yes" run_command "pacman -S --noconfirm cliphist" "Install Cliphist - Clipboard Manager" "yes" run_command "yay -S --sudoloop --noconfirm swww" "Install SWWW for wallpaper management" "yes" "no" -run_command "cp -r ~/simple-hyprland/assets/backgrounds ~/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" run_command "yay -S --sudoloop --noconfirm hyprpicker" "Install Hyprpicker - Color Picker" "yes" "no" run_command "yay -S --sudoloop --noconfirm hyprlock" "Install Hyprlock - Screen Locker (Must)" "yes" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hyprlock.conf ~/.config/hypr/" "Copy Hyprlock config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprlock.conf /home/$SUDO_USER/.config/hypr/" "Copy Hyprlock config" "yes" run_command "yay -S --sudoloop --noconfirm wlogout" "Install Wlogout - Session Manager" "yes" "no" -run_command "cp -r ~/simple-hyprland/configs/wlogout ~/.config/ && cp -r ~/simple-hyprland/assets/wlogout ~/.config/assets/" "Copy Wlogout config and assets" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/wlogout /home/$SUDO_USER/.config/ && cp -r /home/$SUDO_USER/simple-hyprland/assets/wlogout /home/$SUDO_USER/.config/assets/" "Copy Wlogout config and assets" "yes" run_command "yay -S --sudoloop --noconfirm grimblast" "Install Grimblast - Screenshot tool" "yes" "no" run_command "yay -S --sudoloop --noconfirm hypridle" "Install Hypridle for idle management (Must)" "yes" "no" -run_command "cp ~/simple-hyprland/configs/hypr/hypridle.conf ~/.config/hypr/" "Copy Hypridle config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hypridle.conf /home/$SUDO_USER/.config/hypr/" "Copy Hypridle config" "yes" echo "------------------------------------------------------------------------" \ No newline at end of file From 049fca4d7709a41b919803854db4f6e7db9eee9c Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 10:12:01 +0530 Subject: [PATCH 25/32] better script info and visibility --- scripts/installer/helper.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/installer/helper.sh b/scripts/installer/helper.sh index c589c95..cd22f2f 100755 --- a/scripts/installer/helper.sh +++ b/scripts/installer/helper.sh @@ -71,11 +71,18 @@ function run_command { local description="$2" local ask_confirm="${3:-yes}" # Default to asking for confirmation local use_sudo="${4:-yes}" # Default to using sudo + + local full_cmd="" + if [[ "$use_sudo" == "no" ]]; then + full_cmd="sudo -u $SUDO_USER $cmd" + else + full_cmd="$cmd" + fi log_message "Attempting to run: $description" - + print_info "\nCommand: $full_cmd" if [[ "$ask_confirm" == "yes" ]]; then - if ! ask_confirmation "\n$description"; then + if ! ask_confirmation "$description"; then # print_info "$description was skipped." log_message "$description was skipped by user choice." return 1 @@ -84,13 +91,6 @@ function run_command { print_info "\n$description" # Echo what it's doing without confirmation fi - local full_cmd="" - if [[ "$use_sudo" == "no" ]]; then - full_cmd="sudo -u $SUDO_USER $cmd" - else - full_cmd="$cmd" - fi - while ! eval "$full_cmd"; do print_error "Command failed." log_message "Command failed: $cmd" From 603007921b16d95f90ab879a5e2aa4be2f42f6e1 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 10:12:25 +0530 Subject: [PATCH 26/32] command fixes --- scripts/installer/hypr.sh | 4 +- scripts/installer/simple_hyprland_install.log | 118 ++++++++++++++++++ scripts/installer/theming.sh | 4 +- scripts/installer/utilities.sh | 12 +- 4 files changed, 128 insertions(+), 10 deletions(-) diff --git a/scripts/installer/hypr.sh b/scripts/installer/hypr.sh index 383ef49..c0799b7 100644 --- a/scripts/installer/hypr.sh +++ b/scripts/installer/hypr.sh @@ -11,14 +11,14 @@ print_info "\nStarting hypr setup..." print_info "\nEverything is recommended to INSTALL" run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes" -run_command "cp /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" #no +run_command "cp /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" "no" run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG desktop portal for Hyprland" "yes" run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit agent for authentication dialogs" "yes" run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon" "yes" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/dunst /home/$SUDO_USER/.config/" "Copy dunst config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/dunst /home/$SUDO_USER/.config/" "Copy dunst config" "yes" "no" run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "yes" diff --git a/scripts/installer/simple_hyprland_install.log b/scripts/installer/simple_hyprland_install.log index 6bb53ee..4ade58c 100644 --- a/scripts/installer/simple_hyprland_install.log +++ b/scripts/installer/simple_hyprland_install.log @@ -86,3 +86,121 @@ Thu Aug 8 09:48:24 AM IST 2024: Operation accepted by user. Thu Aug 8 09:48:24 AM IST 2024: Copy dunst config completed successfully. Thu Aug 8 09:48:24 AM IST 2024: Attempting to run: Install QT support on wayland Thu Aug 8 09:50:32 AM IST 2024: Script interrupted and exited +Thu Aug 8 09:59:51 AM IST 2024: Installation started +Thu Aug 8 09:59:51 AM IST 2024: Original user is gaurav +Thu Aug 8 09:59:51 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 09:59:54 AM IST 2024: Operation accepted by user. +Thu Aug 8 09:59:54 AM IST 2024: Installation started for prerequisites section +Thu Aug 8 09:59:54 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) +Thu Aug 8 10:00:34 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:00:37 AM IST 2024: Installation started +Thu Aug 8 10:00:37 AM IST 2024: Original user is gaurav +Thu Aug 8 10:00:37 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:00:39 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:00:39 AM IST 2024: Installation started for prerequisites section +Thu Aug 8 10:00:39 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) +Thu Aug 8 10:02:02 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:02:02 AM IST 2024: Installation started +Thu Aug 8 10:02:02 AM IST 2024: Original user is gaurav +Thu Aug 8 10:02:02 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:02:07 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:02:07 AM IST 2024: Installation started for prerequisites section +Thu Aug 8 10:02:07 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) +Thu Aug 8 10:03:51 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:03:53 AM IST 2024: Installation started +Thu Aug 8 10:03:53 AM IST 2024: Original user is gaurav +Thu Aug 8 10:03:53 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:03:56 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:03:56 AM IST 2024: Installation started for prerequisites section +Thu Aug 8 10:03:56 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) +Thu Aug 8 10:04:06 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:04:06 AM IST 2024: Update package database and upgrade packages (Recommended) was skipped by user choice. +Thu Aug 8 10:04:06 AM IST 2024: Attempting to run: Install YAY (Must)/Breaks the script +Thu Aug 8 10:05:35 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:05:43 AM IST 2024: Installation started +Thu Aug 8 10:05:43 AM IST 2024: Original user is gaurav +Thu Aug 8 10:05:43 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:05:44 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:05:44 AM IST 2024: Installation started for prerequisites section +Thu Aug 8 10:05:44 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) +Thu Aug 8 10:05:47 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:05:47 AM IST 2024: Update package database and upgrade packages (Recommended) was skipped by user choice. +Thu Aug 8 10:05:47 AM IST 2024: Attempting to run: Install YAY (Must)/Breaks the script +Thu Aug 8 10:05:54 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:05:54 AM IST 2024: Install YAY (Must)/Breaks the script was skipped by user choice. +Thu Aug 8 10:05:54 AM IST 2024: Attempting to run: Configuring audio (Recommended) +Thu Aug 8 10:06:04 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:04 AM IST 2024: Configuring audio (Recommended) was skipped by user choice. +Thu Aug 8 10:06:04 AM IST 2024: Attempting to run: Installing Nerd Fonts and Symbols (Recommended) +Thu Aug 8 10:06:07 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:07 AM IST 2024: Installing Nerd Fonts and Symbols (Recommended) was skipped by user choice. +Thu Aug 8 10:06:07 AM IST 2024: Attempting to run: Install and enable SDDM (Recommended) +Thu Aug 8 10:06:09 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:09 AM IST 2024: Install and enable SDDM (Recommended) was skipped by user choice. +Thu Aug 8 10:06:09 AM IST 2024: Attempting to run: Install Brave Browser +Thu Aug 8 10:06:14 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:14 AM IST 2024: Install Brave Browser was skipped by user choice. +Thu Aug 8 10:06:14 AM IST 2024: Attempting to run: Install Kitty (Recommended) +Thu Aug 8 10:06:19 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:19 AM IST 2024: Install Kitty (Recommended) was skipped by user choice. +Thu Aug 8 10:06:19 AM IST 2024: Attempting to run: Install nano +Thu Aug 8 10:06:21 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:21 AM IST 2024: Install nano was skipped by user choice. +Thu Aug 8 10:06:21 AM IST 2024: Attempting to run: Install tar for extracting files (Must)/needed for copying themes +Thu Aug 8 10:06:23 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:23 AM IST 2024: Install tar for extracting files (Must)/needed for copying themes was skipped by user choice. +Thu Aug 8 10:06:25 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:06:25 AM IST 2024: Installation started for hypr section +Thu Aug 8 10:06:25 AM IST 2024: Attempting to run: Install Hyprland (Must) +Thu Aug 8 10:06:26 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:06:26 AM IST 2024: Install Hyprland (Must) was skipped by user choice. +Thu Aug 8 10:06:26 AM IST 2024: Attempting to run: Copy hyprland config (Must) +Thu Aug 8 10:07:01 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:07:48 AM IST 2024: Installation started +Thu Aug 8 10:07:48 AM IST 2024: Original user is gaurav +Thu Aug 8 10:07:48 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:07:50 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:07:56 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:07:56 AM IST 2024: Installation started for hypr section +Thu Aug 8 10:07:56 AM IST 2024: Attempting to run: Install Hyprland (Must) +Thu Aug 8 10:07:58 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:07:58 AM IST 2024: Install Hyprland (Must) was skipped by user choice. +Thu Aug 8 10:07:58 AM IST 2024: Attempting to run: Copy hyprland config (Must) +Thu Aug 8 10:08:20 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:20 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. +Thu Aug 8 10:08:20 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland +Thu Aug 8 10:08:21 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:21 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. +Thu Aug 8 10:08:21 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs +Thu Aug 8 10:08:22 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:22 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. +Thu Aug 8 10:08:22 AM IST 2024: Attempting to run: Install Dunst notification daemon +Thu Aug 8 10:08:23 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:23 AM IST 2024: Install Dunst notification daemon was skipped by user choice. +Thu Aug 8 10:08:23 AM IST 2024: Attempting to run: Copy dunst config +Thu Aug 8 10:08:49 AM IST 2024: Script interrupted and exited +Thu Aug 8 10:08:51 AM IST 2024: Installation started +Thu Aug 8 10:08:51 AM IST 2024: Original user is gaurav +Thu Aug 8 10:08:51 AM IST 2024: Arch Linux detected. Installation proceeding. +Thu Aug 8 10:08:52 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:53 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:08:53 AM IST 2024: Installation started for hypr section +Thu Aug 8 10:08:53 AM IST 2024: Attempting to run: Install Hyprland (Must) +Thu Aug 8 10:08:54 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:54 AM IST 2024: Install Hyprland (Must) was skipped by user choice. +Thu Aug 8 10:08:54 AM IST 2024: Attempting to run: Copy hyprland config (Must) +Thu Aug 8 10:08:54 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:54 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. +Thu Aug 8 10:08:54 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland +Thu Aug 8 10:08:59 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:08:59 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. +Thu Aug 8 10:08:59 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs +Thu Aug 8 10:09:05 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:09:05 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. +Thu Aug 8 10:09:05 AM IST 2024: Attempting to run: Install Dunst notification daemon +Thu Aug 8 10:09:08 AM IST 2024: Operation cancelled by user. +Thu Aug 8 10:09:08 AM IST 2024: Install Dunst notification daemon was skipped by user choice. +Thu Aug 8 10:09:08 AM IST 2024: Attempting to run: Copy dunst config +Thu Aug 8 10:09:10 AM IST 2024: Operation accepted by user. +Thu Aug 8 10:09:10 AM IST 2024: Copy dunst config completed successfully. +Thu Aug 8 10:09:10 AM IST 2024: Attempting to run: Install QT support on wayland diff --git a/scripts/installer/theming.sh b/scripts/installer/theming.sh index ab359fa..d0da707 100644 --- a/scripts/installer/theming.sh +++ b/scripts/installer/theming.sh @@ -13,9 +13,9 @@ run_command "pacman -S --noconfirm nwg-look" "Install nwg-look for GTK theme man run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "Install Qt5, Qt6 Settings, and Kvantum theme engines" "yes" -run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes" "no" +run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes" -run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes" "no" +run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes" run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Install Catppuccin theme for Kvantum" "yes" "no" diff --git a/scripts/installer/utilities.sh b/scripts/installer/utilities.sh index 25deb02..8642769 100644 --- a/scripts/installer/utilities.sh +++ b/scripts/installer/utilities.sh @@ -10,27 +10,27 @@ log_message "Installation started for utilities section" print_info "\nStarting utilities setup..." run_command "pacman -S --noconfirm waybar" "Install Waybar - Status Bar" "yes" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/waybar /home/$SUDO_USER/.config/" "Copy Waybar config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/waybar /home/$SUDO_USER/.config/" "Copy Waybar config" "yes" "no" run_command "yay -S --sudoloop --noconfirm tofi" "Install Tofi - Application Launcher" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/tofi /home/$SUDO_USER/.config/" "Copy Tofi config(s)" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/tofi /home/$SUDO_USER/.config/" "Copy Tofi config(s)" "yes" "no" run_command "pacman -S --noconfirm cliphist" "Install Cliphist - Clipboard Manager" "yes" run_command "yay -S --sudoloop --noconfirm swww" "Install SWWW for wallpaper management" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" "no" run_command "yay -S --sudoloop --noconfirm hyprpicker" "Install Hyprpicker - Color Picker" "yes" "no" run_command "yay -S --sudoloop --noconfirm hyprlock" "Install Hyprlock - Screen Locker (Must)" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprlock.conf /home/$SUDO_USER/.config/hypr/" "Copy Hyprlock config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprlock.conf /home/$SUDO_USER/.config/hypr/" "Copy Hyprlock config" "yes" "no" run_command "yay -S --sudoloop --noconfirm wlogout" "Install Wlogout - Session Manager" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/wlogout /home/$SUDO_USER/.config/ && cp -r /home/$SUDO_USER/simple-hyprland/assets/wlogout /home/$SUDO_USER/.config/assets/" "Copy Wlogout config and assets" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/wlogout /home/$SUDO_USER/.config/ && cp -r /home/$SUDO_USER/simple-hyprland/assets/wlogout /home/$SUDO_USER/.config/assets/" "Copy Wlogout config and assets" "yes" "no" run_command "yay -S --sudoloop --noconfirm grimblast" "Install Grimblast - Screenshot tool" "yes" "no" run_command "yay -S --sudoloop --noconfirm hypridle" "Install Hypridle for idle management (Must)" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hypridle.conf /home/$SUDO_USER/.config/hypr/" "Copy Hypridle config" "yes" +run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hypridle.conf /home/$SUDO_USER/.config/hypr/" "Copy Hypridle config" "yes" "no" echo "------------------------------------------------------------------------" \ No newline at end of file From 120307728c94cfd82df5b8b35a66744334b26e69 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 10:22:23 +0530 Subject: [PATCH 27/32] Delete scripts/installer/simple_hyprland_install.log Deleted log file --- scripts/installer/simple_hyprland_install.log | 206 ------------------ 1 file changed, 206 deletions(-) delete mode 100644 scripts/installer/simple_hyprland_install.log diff --git a/scripts/installer/simple_hyprland_install.log b/scripts/installer/simple_hyprland_install.log deleted file mode 100644 index 4ade58c..0000000 --- a/scripts/installer/simple_hyprland_install.log +++ /dev/null @@ -1,206 +0,0 @@ -Thu Aug 8 09:28:34 AM IST 2024: Installation started -Thu Aug 8 09:28:34 AM IST 2024: Original user is gaurav -Thu Aug 8 09:28:34 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:28:35 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:28:37 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:28:37 AM IST 2024: Installation started for theming section -Thu Aug 8 09:28:37 AM IST 2024: Attempting to run: Install nwg-look for GTK theme management -Thu Aug 8 09:28:38 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:28:38 AM IST 2024: Install nwg-look for GTK theme management was skipped by user choice. -Thu Aug 8 09:28:38 AM IST 2024: Attempting to run: Install Qt5, Qt6 Settings, and Kvantum theme engines -Thu Aug 8 09:28:39 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:28:39 AM IST 2024: Install Qt5, Qt6 Settings, and Kvantum theme engines was skipped by user choice. -Thu Aug 8 09:28:39 AM IST 2024: Attempting to run: Install Catppuccin Mocha GTK theme -Thu Aug 8 09:28:41 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:28:41 AM IST 2024: Command failed: tar -xvf ~/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/ -Thu Aug 8 09:31:47 AM IST 2024: Script interrupted and exited -Thu Aug 8 09:32:44 AM IST 2024: Installation started -Thu Aug 8 09:32:44 AM IST 2024: Original user is gaurav -Thu Aug 8 09:32:44 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:32:45 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:32:47 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:32:47 AM IST 2024: Installation started for theming section -Thu Aug 8 09:32:47 AM IST 2024: Attempting to run: Install nwg-look for GTK theme management -Thu Aug 8 09:32:49 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:32:49 AM IST 2024: Install nwg-look for GTK theme management was skipped by user choice. -Thu Aug 8 09:32:49 AM IST 2024: Attempting to run: Install Qt5, Qt6 Settings, and Kvantum theme engines -Thu Aug 8 09:32:50 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:32:50 AM IST 2024: Install Qt5, Qt6 Settings, and Kvantum theme engines was skipped by user choice. -Thu Aug 8 09:32:50 AM IST 2024: Attempting to run: Install Catppuccin Mocha GTK theme -Thu Aug 8 09:32:53 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:32:53 AM IST 2024: Install Catppuccin Mocha GTK theme completed successfully. -Thu Aug 8 09:32:53 AM IST 2024: Attempting to run: Install Tela Circle Dracula icon theme -Thu Aug 8 09:32:56 AM IST 2024: Script interrupted and exited -Thu Aug 8 09:47:14 AM IST 2024: Installation started -Thu Aug 8 09:47:14 AM IST 2024: Original user is gaurav -Thu Aug 8 09:47:14 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 09:47:20 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:33 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:47:33 AM IST 2024: Installation started for hypr section -Thu Aug 8 09:47:33 AM IST 2024: Attempting to run: Install Hyprland (Must) -Thu Aug 8 09:47:35 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:35 AM IST 2024: Install Hyprland (Must) was skipped by user choice. -Thu Aug 8 09:47:35 AM IST 2024: Attempting to run: Copy hyprland config (Must) -Thu Aug 8 09:47:35 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:35 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. -Thu Aug 8 09:47:35 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland -Thu Aug 8 09:47:37 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:37 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. -Thu Aug 8 09:47:37 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs -Thu Aug 8 09:47:38 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:38 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. -Thu Aug 8 09:47:38 AM IST 2024: Attempting to run: Install Dunst notification daemon -Thu Aug 8 09:47:39 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:47:39 AM IST 2024: Install Dunst notification daemon was skipped by user choice. -Thu Aug 8 09:47:39 AM IST 2024: Attempting to run: Copy dunst config -Thu Aug 8 09:47:40 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:47:40 AM IST 2024: Command failed: cp -r /home/gaurav/simple-hyprland/configs/dunst ~/.config/ -Thu Aug 8 09:48:15 AM IST 2024: Script interrupted and exited -Thu Aug 8 09:48:16 AM IST 2024: Installation started -Thu Aug 8 09:48:16 AM IST 2024: Original user is gaurav -Thu Aug 8 09:48:16 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 09:48:19 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:20 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:48:20 AM IST 2024: Installation started for hypr section -Thu Aug 8 09:48:20 AM IST 2024: Attempting to run: Install Hyprland (Must) -Thu Aug 8 09:48:20 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:20 AM IST 2024: Install Hyprland (Must) was skipped by user choice. -Thu Aug 8 09:48:20 AM IST 2024: Attempting to run: Copy hyprland config (Must) -Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:21 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. -Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland -Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:21 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. -Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs -Thu Aug 8 09:48:21 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:21 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. -Thu Aug 8 09:48:21 AM IST 2024: Attempting to run: Install Dunst notification daemon -Thu Aug 8 09:48:23 AM IST 2024: Operation cancelled by user. -Thu Aug 8 09:48:23 AM IST 2024: Install Dunst notification daemon was skipped by user choice. -Thu Aug 8 09:48:23 AM IST 2024: Attempting to run: Copy dunst config -Thu Aug 8 09:48:24 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:48:24 AM IST 2024: Copy dunst config completed successfully. -Thu Aug 8 09:48:24 AM IST 2024: Attempting to run: Install QT support on wayland -Thu Aug 8 09:50:32 AM IST 2024: Script interrupted and exited -Thu Aug 8 09:59:51 AM IST 2024: Installation started -Thu Aug 8 09:59:51 AM IST 2024: Original user is gaurav -Thu Aug 8 09:59:51 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 09:59:54 AM IST 2024: Operation accepted by user. -Thu Aug 8 09:59:54 AM IST 2024: Installation started for prerequisites section -Thu Aug 8 09:59:54 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) -Thu Aug 8 10:00:34 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:00:37 AM IST 2024: Installation started -Thu Aug 8 10:00:37 AM IST 2024: Original user is gaurav -Thu Aug 8 10:00:37 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:00:39 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:00:39 AM IST 2024: Installation started for prerequisites section -Thu Aug 8 10:00:39 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) -Thu Aug 8 10:02:02 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:02:02 AM IST 2024: Installation started -Thu Aug 8 10:02:02 AM IST 2024: Original user is gaurav -Thu Aug 8 10:02:02 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:02:07 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:02:07 AM IST 2024: Installation started for prerequisites section -Thu Aug 8 10:02:07 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) -Thu Aug 8 10:03:51 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:03:53 AM IST 2024: Installation started -Thu Aug 8 10:03:53 AM IST 2024: Original user is gaurav -Thu Aug 8 10:03:53 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:03:56 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:03:56 AM IST 2024: Installation started for prerequisites section -Thu Aug 8 10:03:56 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) -Thu Aug 8 10:04:06 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:04:06 AM IST 2024: Update package database and upgrade packages (Recommended) was skipped by user choice. -Thu Aug 8 10:04:06 AM IST 2024: Attempting to run: Install YAY (Must)/Breaks the script -Thu Aug 8 10:05:35 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:05:43 AM IST 2024: Installation started -Thu Aug 8 10:05:43 AM IST 2024: Original user is gaurav -Thu Aug 8 10:05:43 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:05:44 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:05:44 AM IST 2024: Installation started for prerequisites section -Thu Aug 8 10:05:44 AM IST 2024: Attempting to run: Update package database and upgrade packages (Recommended) -Thu Aug 8 10:05:47 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:05:47 AM IST 2024: Update package database and upgrade packages (Recommended) was skipped by user choice. -Thu Aug 8 10:05:47 AM IST 2024: Attempting to run: Install YAY (Must)/Breaks the script -Thu Aug 8 10:05:54 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:05:54 AM IST 2024: Install YAY (Must)/Breaks the script was skipped by user choice. -Thu Aug 8 10:05:54 AM IST 2024: Attempting to run: Configuring audio (Recommended) -Thu Aug 8 10:06:04 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:04 AM IST 2024: Configuring audio (Recommended) was skipped by user choice. -Thu Aug 8 10:06:04 AM IST 2024: Attempting to run: Installing Nerd Fonts and Symbols (Recommended) -Thu Aug 8 10:06:07 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:07 AM IST 2024: Installing Nerd Fonts and Symbols (Recommended) was skipped by user choice. -Thu Aug 8 10:06:07 AM IST 2024: Attempting to run: Install and enable SDDM (Recommended) -Thu Aug 8 10:06:09 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:09 AM IST 2024: Install and enable SDDM (Recommended) was skipped by user choice. -Thu Aug 8 10:06:09 AM IST 2024: Attempting to run: Install Brave Browser -Thu Aug 8 10:06:14 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:14 AM IST 2024: Install Brave Browser was skipped by user choice. -Thu Aug 8 10:06:14 AM IST 2024: Attempting to run: Install Kitty (Recommended) -Thu Aug 8 10:06:19 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:19 AM IST 2024: Install Kitty (Recommended) was skipped by user choice. -Thu Aug 8 10:06:19 AM IST 2024: Attempting to run: Install nano -Thu Aug 8 10:06:21 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:21 AM IST 2024: Install nano was skipped by user choice. -Thu Aug 8 10:06:21 AM IST 2024: Attempting to run: Install tar for extracting files (Must)/needed for copying themes -Thu Aug 8 10:06:23 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:23 AM IST 2024: Install tar for extracting files (Must)/needed for copying themes was skipped by user choice. -Thu Aug 8 10:06:25 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:06:25 AM IST 2024: Installation started for hypr section -Thu Aug 8 10:06:25 AM IST 2024: Attempting to run: Install Hyprland (Must) -Thu Aug 8 10:06:26 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:06:26 AM IST 2024: Install Hyprland (Must) was skipped by user choice. -Thu Aug 8 10:06:26 AM IST 2024: Attempting to run: Copy hyprland config (Must) -Thu Aug 8 10:07:01 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:07:48 AM IST 2024: Installation started -Thu Aug 8 10:07:48 AM IST 2024: Original user is gaurav -Thu Aug 8 10:07:48 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:07:50 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:07:56 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:07:56 AM IST 2024: Installation started for hypr section -Thu Aug 8 10:07:56 AM IST 2024: Attempting to run: Install Hyprland (Must) -Thu Aug 8 10:07:58 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:07:58 AM IST 2024: Install Hyprland (Must) was skipped by user choice. -Thu Aug 8 10:07:58 AM IST 2024: Attempting to run: Copy hyprland config (Must) -Thu Aug 8 10:08:20 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:20 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. -Thu Aug 8 10:08:20 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland -Thu Aug 8 10:08:21 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:21 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. -Thu Aug 8 10:08:21 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs -Thu Aug 8 10:08:22 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:22 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. -Thu Aug 8 10:08:22 AM IST 2024: Attempting to run: Install Dunst notification daemon -Thu Aug 8 10:08:23 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:23 AM IST 2024: Install Dunst notification daemon was skipped by user choice. -Thu Aug 8 10:08:23 AM IST 2024: Attempting to run: Copy dunst config -Thu Aug 8 10:08:49 AM IST 2024: Script interrupted and exited -Thu Aug 8 10:08:51 AM IST 2024: Installation started -Thu Aug 8 10:08:51 AM IST 2024: Original user is gaurav -Thu Aug 8 10:08:51 AM IST 2024: Arch Linux detected. Installation proceeding. -Thu Aug 8 10:08:52 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:53 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:08:53 AM IST 2024: Installation started for hypr section -Thu Aug 8 10:08:53 AM IST 2024: Attempting to run: Install Hyprland (Must) -Thu Aug 8 10:08:54 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:54 AM IST 2024: Install Hyprland (Must) was skipped by user choice. -Thu Aug 8 10:08:54 AM IST 2024: Attempting to run: Copy hyprland config (Must) -Thu Aug 8 10:08:54 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:54 AM IST 2024: Copy hyprland config (Must) was skipped by user choice. -Thu Aug 8 10:08:54 AM IST 2024: Attempting to run: Install XDG desktop portal for Hyprland -Thu Aug 8 10:08:59 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:08:59 AM IST 2024: Install XDG desktop portal for Hyprland was skipped by user choice. -Thu Aug 8 10:08:59 AM IST 2024: Attempting to run: Install KDE Polkit agent for authentication dialogs -Thu Aug 8 10:09:05 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:09:05 AM IST 2024: Install KDE Polkit agent for authentication dialogs was skipped by user choice. -Thu Aug 8 10:09:05 AM IST 2024: Attempting to run: Install Dunst notification daemon -Thu Aug 8 10:09:08 AM IST 2024: Operation cancelled by user. -Thu Aug 8 10:09:08 AM IST 2024: Install Dunst notification daemon was skipped by user choice. -Thu Aug 8 10:09:08 AM IST 2024: Attempting to run: Copy dunst config -Thu Aug 8 10:09:10 AM IST 2024: Operation accepted by user. -Thu Aug 8 10:09:10 AM IST 2024: Copy dunst config completed successfully. -Thu Aug 8 10:09:10 AM IST 2024: Attempting to run: Install QT support on wayland From 71acd013d6034dd62c3f07c38a32eb8659d428f2 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 11:59:29 +0530 Subject: [PATCH 28/32] visual fixes --- README.md | 70 +++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index c5103f4..b5fb009 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ While this guide is created with [Arch Linux](https://archlinux.org/) in mind, i ``` #### Important Notes: -- This script is user-centric and allows you to choose which components to install (Everything is asked, even for the core env). +- This script is user-centric and allows you to choose which components to install (Everything is asked, even for the core e`). - While the script offers flexibility, it is recommend to installing all components for the best experience, as this is already a minimal setup. - The installation process follows the same flow as the documentation, ensuring a structured and educational approach. - Although designed for Arch Linux, users of Arch-based distributions may also find this script helpful. @@ -61,46 +61,46 @@ While this guide is created with [Arch Linux](https://archlinux.org/) in mind, i After installation, you'll want to familiarize yourself with the default key bindings. Here are some essential shortcuts to get you started: #### General -- **Super + T**: Open the terminal (`$terminal`). -- **Super + B**: Open the browser (`$browser`). -- **Super + O**: Open notes application (`$notes`). -- **Super + C**: Open the primary editor (`$editor`). -- **Super + S**: Open the alternative editor (`$editor-alt`). -- **Super + F**: Open the file manager (`$fileManager`). -- **Super + A**: Open the application menu (`$menu`). -- **Super + M**: Exit Hyprland. +- `Super + T`: Open the terminal (`$terminal`). +- `Super + B`: Open the browser (`$browser`). +- `Super + O`: Open notes application (`$notes`). +- `Super + C`: Open the primary editor (`$editor`). +- `Super + S`: Open the alternative editor (`$editor-alt`). +- `Super + F`: Open the file manager (`$fileManager`). +- `Super + A`: Open the application menu (`$menu`). +- `Super + M`: Exit Hyprland. #### Window Management & Workspace Navigation -- **Super + Q**: Close the active window. -- **Super + W**: Toggle floating mode for the active window. -- **Super + J**: Toggle split mode in the Dwindle layout. -- **SUPER + [Arrow Keys]**: Move focus between windows -- **SUPER + SHIFT + [Arrow Keys]**: Move active window -- **SUPER + CTRL + [Arrow Keys]**: Resize active window -- **SUPER + [1-9]**: Switch to workspace 1-9 -- **SUPER + SHIFT + [1-9]**: Move active window to workspace 1-9 +- `Super + Q`: Close the active window. +- `Super + W`: Toggle floating mode for the active window. +- `Super + J`: Toggle split mode in the Dwindle layout. +- `SUPER + [Arrow Keys]`: Move focus between windows +- `SUPER + SHIFT + [Arrow Keys]`: Move active window +- `SUPER + CTRL + [Arrow Keys]`: Resize active window +- `SUPER + [1-9]`: Switch to workspace 1-9 +- `SUPER + SHIFT + [1-9]`: Move active window to workspace 1-9 #### Screen Brightness, Volume and Media Control -- **Brightness Up**: Increase the screen brightness by 5%. -- **Brightness Down**: Decrease the screen brightness by 5%. -- **Volume Up**: Increase the volume by 5%. -- **Volume Down**: Decrease the volume by 5%. -- **Mic Mute**: Mute the microphone. -- **Audio Mute**: Mute the audio. -- **Play/Pause**: Toggle play/pause for media. -- **Next Track**: Skip to the next track. -- **Previous Track**: Go back to the previous track. +- `Brightness Up`: Increase the screen brightness by 5%. +- `Brightness Down`: Decrease the screen brightness by 5%. +- `Volume Up`: Increase the volume by 5%. +- `Volume Down`: Decrease the volume by 5%. +- `Mic Mute`: Mute the microphone. +- `Audio Mute`: Mute the audio. +- `Play/Pause`: Toggle play/pause for media. +- `Next Track`: Skip to the next track. +- `Previous Track`: Go back to the previous track. #### Miscellaneous -- **SUPER + L**: Lock screen -- **Super + V**: Open the clipboard history and paste the selected item. -- **Super + P**: Open the color picker and copy the selected color to the clipboard. -- **Super + L**: Lock the screen. -- **Super + Escape**: Open the logout menu. -- **Ctrl + Escape**: Toggle the Waybar (kill if running, start if not). -- **Print Screen**: Take a screenshot of the entire screen and copy it to the clipboard. -- **Super + Print Screen**: Take a screenshot of the active window and copy it to the clipboard. -- **Super + Alt + Print Screen**: Select an area to take a screenshot and copy it to the clipboard. +- `SUPER + L`: Lock screen +- `Super + V`: Open the clipboard history and paste the selected item. +- `Super + P`: Open the color picker and copy the selected color to the clipboard. +- `Super + L`: Lock the screen. +- `Super + Escape`: Open the logout menu. +- `Ctrl + Escape`: Toggle the Waybar (kill if running, start if not). +- `Print Screen`: Take a screenshot of the entire screen and copy it to the clipboard. +- `Super + Print Screen`: Take a screenshot of the active window and copy it to the clipboard. +- `Super + Alt + Print Screen`: Select an area to take a screenshot and copy it to the clipboard. Make sure to have applications installed corresponding to the binds. Feel free to customize these keybindings to better suit your needs. You can customize these and add more in your Hyprland configuration file (`~/.config/hypr/hyprland.conf`). From ca92c69f2695cde4fe0bf8b6849c19114ab35073 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 12:28:38 +0530 Subject: [PATCH 29/32] fixed yay installation --- scripts/installer/prerequisites.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/installer/prerequisites.sh b/scripts/installer/prerequisites.sh index 2617001..4e18d06 100755 --- a/scripts/installer/prerequisites.sh +++ b/scripts/installer/prerequisites.sh @@ -11,7 +11,8 @@ print_info "\nStarting prerequisites setup..." run_command "pacman -Syyu --noconfirm" "Update package database and upgrade packages (Recommended)" "yes" # no -run_command "pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)/Breaks the script" "yes" # no +run_command "pacman -S --noconfirm --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)/Breaks the script" "no" # no +run_command "git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Build YAY (Must)/Breaks the script" "no" "no" # no run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio (Recommended)" "yes" From 01ee93ba43bf43c4fd0017298e3e7594a6e2b634 Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 12:34:47 +0530 Subject: [PATCH 30/32] fixed yay --- scripts/installer/prerequisites.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/installer/prerequisites.sh b/scripts/installer/prerequisites.sh index 4e18d06..e926391 100755 --- a/scripts/installer/prerequisites.sh +++ b/scripts/installer/prerequisites.sh @@ -11,9 +11,10 @@ print_info "\nStarting prerequisites setup..." run_command "pacman -Syyu --noconfirm" "Update package database and upgrade packages (Recommended)" "yes" # no -run_command "pacman -S --noconfirm --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Install YAY (Must)/Breaks the script" "no" # no -run_command "git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd.. # builds with makepkg" "Build YAY (Must)/Breaks the script" "no" "no" # no - +if run_command "pacman -S --noconfirm --needed git base-devel" "Install YAY (Must)/Breaks the script" "yes"; then # + run_command "git clone https://aur.archlinux.org/yay.git && cd yay" "Clone YAY (Must)/Breaks the script" "no" "no" + run_command "makepkg --noconfirm -si && cd .. # builds with makepkg" "Build YAY (Must)/Breaks the script" "no" "no" +fi run_command "pacman -S --noconfirm pipewire wireplumber" "Configuring audio (Recommended)" "yes" run_command "pacman -S --noconfirm ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-firacode-nerd ttf-iosevka-nerd ttf-iosevkaterm-nerd ttf-jetbrains-mono-nerd ttf-jetbrains-mono ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-mono" "Installing Nerd Fonts and Symbols (Recommended)" "yes" From d593c4d27e029962ca7d1ba9d699695067e7d93f Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 14:04:53 +0530 Subject: [PATCH 31/32] fixed conf copy --- scripts/installer/hypr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer/hypr.sh b/scripts/installer/hypr.sh index c0799b7..1c03a4f 100644 --- a/scripts/installer/hypr.sh +++ b/scripts/installer/hypr.sh @@ -11,7 +11,7 @@ print_info "\nStarting hypr setup..." print_info "\nEverything is recommended to INSTALL" run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes" -run_command "cp /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" "no" +run_command "mkdir -p /home/$SUDO_USER/.config/hypr/ && cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" "no" run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG desktop portal for Hyprland" "yes" From 3e131594be24ebfea31449d0e0b625746e98248d Mon Sep 17 00:00:00 2001 From: Gaurav Bankar Date: Thu, 8 Aug 2024 14:15:29 +0530 Subject: [PATCH 32/32] fixed walls copy --- scripts/installer/utilities.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer/utilities.sh b/scripts/installer/utilities.sh index 8642769..ba4241f 100644 --- a/scripts/installer/utilities.sh +++ b/scripts/installer/utilities.sh @@ -18,7 +18,7 @@ run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/tofi /home/$SUDO_USE run_command "pacman -S --noconfirm cliphist" "Install Cliphist - Clipboard Manager" "yes" run_command "yay -S --sudoloop --noconfirm swww" "Install SWWW for wallpaper management" "yes" "no" -run_command "cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/backgrounds/" "Copy sample wallpapers to assets directory (Recommended)" "yes" "no" +run_command "mkdir -p /home/$SUDO_USER/.config/assets/backgrounds && cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/" "Copy sample wallpapers to assets directory (Recommended)" "yes" "no" run_command "yay -S --sudoloop --noconfirm hyprpicker" "Install Hyprpicker - Color Picker" "yes" "no"