diff --git a/README.md b/README.md index 39aff11f..47f0ebe3 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,47 @@
-

Hyprland with AGS

+

Hyprland

- -License +

+Commit Activity +Last Commit +GitHub License
+Codecov coverage +GitHub code size +

- -People +

+ Dotfiles +
+ A dotfiles setup for Hyprland. Personal but easy to set up. +
+ Not recommended for existing configurations. +
- -Stars + [Document] + Β· + [Report a bug] + Β· + [Suggesting new features.] +

- -Forks +
- -Watches + + + + + + +
+ :warning: WARNING :warning: +
- -Last Updated + Designed for Arch Linux. Compatibility with other systems is not guaranteed. + VMs are not supported. + NVIDIA GPU not supported + +

Hyprland Dots As I use for my daily driver

@@ -37,11 +60,84 @@ ## 🌌 Overview -

This repository contains Arch Linux's DotFiles, which I use on a daily basis.
-It includes custom settings, aliases, settings for familiar tools, and more to quickly create my ideal work environment on any machine.

-for +

This repository contains Arch Linux's DotFiles, which I use on a daily basis.
+It includes custom settings, aliases, settings for familiar tools, and more to quickly create my ideal work environment on any machine.


+### 🌸 Core System Info + +- **OS**: [Arch Linux](https://archlinux.org/) :boom: +- **WM**: [hyprland](https://hyprland.org/) :window: +- **Shell**: [zsh](https://www.zsh.org/) / [starship](https://github.com/starship/starship) :shell: +- **Terminal Emulator**: [kitty](https://sw.kovidgoyal.net/kitty/) :cat: +- **Panel**: [AGS](https://aylur.github.io/ags-docs/) :shaved_ice: +- **Text Editor**: [neovim](https://neovim.io/) / [geany](https://www.geany.org/) :keyboard: +- **App Launcher**: [AGS](https://aylur.github.io/ags-docs/) :rocket: +- **File Manager**: [yazi](https://yazi-rs.github.io/) / [Thunar](https://github.com/neilbrown/thunar) :open_file_folder: +- **Browser**: [firefox](https://www.mozilla.org/) :globe_with_meridians: +- **Colorscheme**: [adw](https://github.com/lassekongo83/adw-gtk3) :art: + +--- + +## Composition + +``` + + Dotfiles🌴 + β”‚ + β”œβ”€ πŸ“ assets + β”‚ └─ screenshot fonts + β”œβ”€ πŸ“ config + β”‚ └─ configuration directory + β”œβ”€ πŸ“ misc + β”‚ └─ bins/scripts + β”œβ”€ πŸ“ wallpapers + └─ wallpapers used for hyprland + + +``` +``` + +Setup script execution flow: + 1. **Environment confirmation**: + - Ask user for confirmation before starting script + - Perform a system check + - Check your internet connection + - Check git installation + - Check the VM environment + - Check NVIDIA usage + + 2. **AUR installation**: + - Installing paru (AUR helper) + + 3. **Software installation**: + - Show package installation steps + - Display installation results for each package + + 4. **Copy settings**: + - copy zsh dotfiles + - Copy other config files + + 5. **Enabling the service**: + - Start Bluetooth service + - Enabling SDDM service + - Start powerprofile daemon + + 6. **Theme settings**: + - Set GTK and icon themes + - Fixed configuration file to enable theme + + 7. **Change Shell**: + - Change default shell to Zsh + + 8. **File permission settings**: + - Give execution permission to some script files + + 9. **Other settings**: + - Perform non-critical actions such as creating necessary directories + - Synchronize dotfiles + +``` ### ✨ Features @@ -63,39 +159,6 @@ for - :sparkles: Ripple Effects -### 🌸 Core System Info - -- **OS**: [Arch Linux](https://archlinux.org/) :boom: -- **WM**: [hyprland](https://hyprland.org/) :window: -- **Shell**: [zsh](https://www.zsh.org/) / [starship](https://github.com/starship/starship) :shell: -- **Terminal Emulator**: [kitty](https://sw.kovidgoyal.net/kitty/) :cat: -- **Panel**: [AGS](https://aylur.github.io/ags-docs/) :shaved_ice: -- **Text Editor**: [neovim](https://neovim.io/) / [geany](https://www.geany.org/) :keyboard: -- **App Launcher**: [AGS](https://aylur.github.io/ags-docs/) :rocket: -- **File Manager**: [yazi](https://yazi-rs.github.io/) / [Thunar](https://github.com/neilbrown/thunar) :open_file_folder: -- **Browser**: [firefox](https://www.mozilla.org/) :globe_with_meridians: -- **Colorscheme**: [adw](https://github.com/lassekongo83/adw-gtk3) :art: - ---- - -## πŸ“ Directory Structure - -``` - - Dotfiles🌴 - β”‚ - β”œβ”€ πŸ“ assets - β”‚ └─ screenshot fonts - β”œβ”€ πŸ“ config - β”‚ └─ configuration directory - β”œβ”€ πŸ“ misc - β”‚ └─ bins/scripts - β”œβ”€ πŸ“ wallpapers - └─ wallpapers used for hyprland - - -``` - ## :keyboard: Keyboard Shortcuts Guide ``` diff --git a/setup b/setup index 8d704375..809764f9 100755 --- a/setup +++ b/setup @@ -164,13 +164,20 @@ packages=( ) #-- function ----------------------------------------- install_software() { - echo -en "\e[90mInstalling\e[0m \e[97m$1\e[0m..." - paru -S --noconfirm $1 &>>$INSTLOG & - show_progress $! + package_name=$1 + if pacman -Q $package_name &>/dev/null; then + echo -e "\e[90m$package_name is already installed. Skipping installation.\e[0m" + else + echo -en "\e[90mInstalling\e[0m \e[97m$package_name\e[0m..." + paru -S --noconfirm $package_name &>>$INSTLOG & + show_progress $! + fi } + installed() { echo -en "Installed package \e[97m$1\e[0m." } + #-- express ----------------------------------------- clear echo -e "\033[1;34m" @@ -388,17 +395,18 @@ for file in $HOME/hyrpland/misc/.zshevn; do done echo "Copying bin ..." for binn in $HOME/hyrpland/misc/bin/*; do - if [ "$(basename "$file")" != "." ] && [ "$(basename "$file")" != ".." ]; then - sudo cp -r "$file" $HOME/.local/bin + if [ "$(basename "$binn")" != "." ] && [ "$(basename "$binn")" != ".." ]; then + sudo cp -r "$binn" $HOME/.local/bin fi done echo "Copying fonts..." for font in $HOME/hyrpland/assets/fonts/*; do - if [ "$(basename "$file")" != "." ] && [ "$(basename "$file")" != ".." ]; then - sudo cp -r "$file" /usr/share/fonts + if [ "$(basename "$font")" != "." ] && [ "$(basename "$font")" != ".." ]; then + sudo cp -r "$font" /usr/share/fonts fi done + sudo cp -r $HOME/hyprland/config/* $HOME/dofiles/ sudo cp -r $HOME/hyprland/wallpapers/* $HOME/Pictures/wallpapers simulate_output "[ \e[32mOK\e[0m ] Copied .zshevn dotfiles to $HOME" @@ -557,6 +565,7 @@ echo "" simulate_output "Setting some files as executable..." simulate_output "[ \e[32mOK\e[0m ] Granted execute permissions to scripts" sudo chmod +x ~/dotfiles/hypr/scripts/* +sudo chmod +x ~/dotfiles/ags/scripts/* sudo sensors-detect --auto > /dev/null echo ""