├── LICENSE ├── README.md └── install.sh /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 ViegPhunt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # My Arch-Hyprland 2 | ![Arch Linux](https://img.shields.io/badge/Arch-Linux-1793D1?logo=arch-linux&logoColor=white) 3 | ![Hyprland](https://img.shields.io/badge/Hyprland-WM-000000?logo=wayland&logoColor=white) 4 | ![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg) 5 | 6 | ## Table of Contents 7 | - [Preview](#preview) 8 | - [Videos](#videos) 9 | - [Screenshots](#screenshots) 10 | - [Notes](#notes) 11 | - [Keybinding](#keybinding) 12 | - [Installation](#installation) 13 | - [Dotfiles Repo](#dotfiles-repo) 14 | - [Wallpapers Repo](#wallpapers-repo) 15 | - [Inspirations](#inspirations) 16 | 17 | ## Preview 18 | ### Videos 19 | [▶️ Watch on YouTube](https://youtu.be/j_eCc8s1v3M) 20 | 21 | 22 | 23 | ### Screenshots 24 |

25 | Image-1.png 26 | Image-2.png 27 | Image-3.png 28 | Image-4.png 29 |

30 | 31 | ## Notes 32 | > [!IMPORTANT] 33 | > `This script automates the installation and setup of my Arch Hyprland environment.` 34 | > - If you want to try it, you should use a minimal profile and backup your system beforehand. 35 | 36 | > [!NOTE] 37 | > This script does not include package uninstallation, as some packages may already exist on your system by default. Creating an uninstallation script could potentially affect your current setup. 38 | 39 | ### Keybinding 40 | `SUPER + H` (Windows + H) to open keybinding hints. 41 | 42 | ## Installation 43 | Use this script to install Hyprland on an Arch-based system: 44 | ``` bash 45 | git clone --depth=1 https://github.com/ViegPhunt/Arch-Hyprland.git 46 | cd ~/Arch-Hyprland 47 | chmod +x install.sh 48 | ./install.sh 49 | ``` 50 | 51 | ## Dotfiles Repo 52 | This repo contains all my dotfiles: [`Dotfiles`](https://github.com/ViegPhunt/Dotfiles). 53 | 54 | ## Wallpapers Repo 55 | You can find my wallpaper collection in: [`Wallpaper-Collection`](https://github.com/ViegPhunt/Wallpaper-Collection). 56 | 57 | ## Inspirations 58 | I drew inspiration from the following projects and communities: 59 | 60 | - https://www.reddit.com/r/unixporn/ 61 | - https://github.com/JaKooLit/Hyprland-Dots 62 | - https://github.com/Hyde-project/hyde 63 | - https://github.com/mylinuxforwork/dotfiles 64 | 65 | and more... 66 | 67 | ## Feedback 68 | If you find this repo useful or have any suggestions, feel free to open an issue or submit a pull request. Happy ricing! 🍚 69 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | 4 | # Variables 5 | #---------------------------- 6 | 7 | # time variable 8 | start=$(date +%s) 9 | 10 | # Color variables 11 | PINK="\e[35m" 12 | WHITE="\e[0m" 13 | YELLOW="\e[33m" 14 | GREEN="\e[32m" 15 | BLUE="\e[34m" 16 | 17 | 18 | clear 19 | 20 | # Welcome message 21 | echo -e "${PINK}\e[1m 22 | WELCOME!${PINK} Now we will install and setup Hyprland on an Arch-based system 23 | Created by \e[1;4mPhunt_Vieg_ 24 | ${WHITE}" 25 | 26 | # Warning message 27 | echo -e "${PINK} 28 | ********************************************************************* 29 | * ⚠️ \e[1;4mWARNING\e[0m${PINK}: * 30 | * This script will modify your system! * 31 | * It will install Hyprland and several dependencies. * 32 | * Make sure you know what you are doing before continuing. * 33 | ********************************************************************* 34 | \n 35 | " 36 | 37 | # Asking if the user want to proceed 38 | echo -e "${YELLOW} Do you still want to continue with Hyprland installation using this script? [y/N]: \n" 39 | read -r confirm 40 | case "$confirm" in 41 | [yY][eE][sS]|[yY]) 42 | echo -e "\n${GREEN}[OK]${PINK} ==> Continuing with installation..." 43 | ;; 44 | *) 45 | echo -e "${BLUE}[NOTE]${PINK} ==> You 🫵 chose ${YELLOW}NOT${PINK} to proceed.. Exiting..." 46 | echo 47 | exit 1 48 | ;; 49 | esac 50 | 51 | # Start of the install procedure 52 | cd ~ 53 | 54 | # Full system update 55 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[1/11]${PINK} ==> Updating system packages\n---------------------------------------------------------------------\n${WHITE}" 56 | sudo pacman -Syu --noconfirm 57 | 58 | # Lunch auto-setup script and dl all the dotfiles 59 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[2/11]${PINK} ==> Setup terminal\n---------------------------------------------------------------------\n${WHITE}" 60 | sleep 0.5 61 | bash -c "$(curl -fSL https://raw.githubusercontent.com/ViegPhunt/auto-setup-LT/main/arch.sh)" 62 | 63 | # Making all the scripts executable (not sure we need this one to be a bullet point) 64 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[3/11]${PINK} ==> Make executable\n---------------------------------------------------------------------\n${WHITE}" 65 | sudo chmod +x ~/dotfiles/.config/viegphunt/* 66 | 67 | # download & mv the wallpapers in the right directory 68 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[4/11]${PINK} ==> Download wallpaper\n---------------------------------------------------------------------\n${WHITE}" 69 | git clone --depth 1 https://github.com/ViegPhunt/Wallpaper-Collection.git ~/Wallpaper-Collection 70 | mkdir -p ~/Pictures/Wallpapers 71 | mv ~/Wallpaper-Collection/Wallpapers/* ~/Pictures/Wallpapers 72 | rm -rf ~/Wallpaper-Collection 73 | 74 | # Install the required packages 75 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[5/11]${PINK} ==> Install package\n---------------------------------------------------------------------\n${WHITE}" 76 | sleep 0.5 77 | ~/dotfiles/.config/viegphunt/install_archpkg.sh 78 | 79 | # enable bluetooth & networkmanager 80 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[6/11]${PINK} ==> Enable bluetooth & networkmanager\n---------------------------------------------------------------------\n${WHITE}" 81 | sleep 0.5 82 | sudo systemctl enable --now bluetooth 83 | sudo systemctl enable --now NetworkManager 84 | 85 | # Set Ghostty as default terminal emulator for Nemo 86 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[7/11]${PINK} ==> Set Ghostty as the default terminal emulator for Nemo\n---------------------------------------------------------------------\n${WHITE}" 87 | gsettings set org.cinnamon.desktop.default-applications.terminal exec ghostty 88 | 89 | # Apply fonts 90 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[8/11]${PINK} ==> Apply fonts\n---------------------------------------------------------------------\n${WHITE}" 91 | fc-cache -fv 92 | 93 | # Set cursor 94 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[9/11]${PINK} ==> Set cursor\n---------------------------------------------------------------------\n${WHITE}" 95 | ~/dotfiles/.config/viegphunt/setcursor.sh 96 | 97 | # Stow 98 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[10/11]${PINK} ==> Stow dotfiles\n---------------------------------------------------------------------\n${WHITE}" 99 | cd ~/dotfiles 100 | stow -t ~ . 101 | cd ~ 102 | 103 | # Check display manager 104 | echo -e "${PINK}\n---------------------------------------------------------------------\n${YELLOW}[11/11]${PINK} ==> Check display manager\n---------------------------------------------------------------------\n${WHITE}" 105 | if [[ ! -e /etc/systemd/system/display-manager.service ]]; then 106 | sudo systemctl enable sddm 107 | echo -e "[Theme]\nCurrent=sddm-astronaut-theme" | sudo tee -a /etc/sddm.conf 108 | sudo sed -i 's|astronaut.conf|purple_leaves.conf|' /usr/share/sddm/themes/sddm-astronaut-theme/metadata.desktop 109 | echo -e "\n${PINK}SDDM has been enabled." 110 | fi 111 | 112 | # Wait a little just for the last message 113 | sleep 0.7 114 | clear 115 | 116 | # Calculate how long the script took 117 | end=$(date +%s) 118 | duration=$((end - start)) 119 | 120 | hours=$((duration / 3600)) 121 | minutes=$(((duration % 3600) / 60)) 122 | seconds=$((duration % 60)) 123 | 124 | printf -v minutes "%02d" "$minutes" 125 | printf -v seconds "%02d" "$seconds" 126 | 127 | echo -e "\n 128 | ********************************************************************* 129 | * Hyprland setup is complete! * 130 | * * 131 | * Duration : $hours hours, $minutes minutes, $seconds seconds * 132 | * * 133 | * It is recommended to \e[1;4mREBOOT\e[0m your system to apply all changes. * 134 | * * 135 | * \e[4mHave a great time with Hyprland!!${WHITE} * 136 | ********************************************************************* 137 | \n 138 | " 139 | 140 | --------------------------------------------------------------------------------