{"id":29698795,"url":"https://github.com/aatricks/arch-matebook-x-pro","last_synced_at":"2026-02-26T22:04:32.349Z","repository":{"id":279687709,"uuid":"939624479","full_name":"Aatricks/Arch-Matebook-X-Pro","owner":"Aatricks","description":"Arch setup fresh out of arch installation","archived":false,"fork":false,"pushed_at":"2025-10-26T23:20:30.000Z","size":102,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T01:19:56.705Z","etag":null,"topics":["archlinux","huawei","install-script","linux","matebook-x-pro"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aatricks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-26T20:54:30.000Z","updated_at":"2025-10-26T23:20:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fc1ff21-fc0d-4381-8888-498801e8aca1","html_url":"https://github.com/Aatricks/Arch-Matebook-X-Pro","commit_stats":null,"previous_names":["aatrick/arch-matebook-x-pro","aatricks/arch-matebook-x-pro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aatricks/Arch-Matebook-X-Pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aatricks%2FArch-Matebook-X-Pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aatricks%2FArch-Matebook-X-Pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aatricks%2FArch-Matebook-X-Pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aatricks%2FArch-Matebook-X-Pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aatricks","download_url":"https://codeload.github.com/Aatricks/Arch-Matebook-X-Pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aatricks%2FArch-Matebook-X-Pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29874513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archlinux","huawei","install-script","linux","matebook-x-pro"],"created_at":"2025-07-23T10:39:06.164Z","updated_at":"2026-02-26T22:04:32.326Z","avatar_url":"https://github.com/Aatricks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arch Linux Post-Install Setup Script\n\nThis repository contains a comprehensive post-installation script (`arch-setup.sh`) for Arch Linux. While originally tailored for a Huawei Matebook X Pro, it has been refactored to be modular and useful for a wide range of laptops, especially those with Intel CPUs and optional NVIDIA GPUs.\n\nThe script automates the setup of a full-featured, optimized, and power-efficient GNOME desktop environment.\n\n---\n\n## Usage\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/Aatricks/Arch-Matebook-X-Pro.git\n    cd Arch-Matebook-X-Pro\n    ```\n\n2.  **Review the script (Recommended):**\n    Open `arch-setup.sh` in a text editor to see what it does. You can easily comment out functions in the `main()` section at the bottom of the script to skip steps you don't want.\n\n3.  **Make the script executable and run it:**\n    ```bash\n    chmod +x arch-setup.sh\n    ./arch-setup.sh\n    ```\n    The script will prompt for your password when it needs to perform administrative tasks. Some steps are interactive and will ask for your confirmation (e.g., installing undervolting tools).\n\n## Features\n\nThe script is broken down into logical functions for clarity and customization.\n\n### 1. System Preparation\n*   **Tidy Environment**: Removes default user directories like `~/Music`, `~/Videos`, etc.\n*   **Pacman Optimization**:\n    *   Enables color output, parallel downloads.\n    *   Enables the `multilib` repository for 32-bit software support (essential for Steam).\n*   **System Update**: Fully updates the system.\n*   **Mirror Refresh**: Installs `reflector` to find and configure the fastest, most up-to-date package mirrors.\n*   **Base Tools**: Installs essential packages like `base-devel`, `git`, `curl`, and `htop`.\n\n### 2. AUR Helper\n*   **Paru**: Automatically installs the `paru` AUR helper to seamlessly install packages from the Arch User Repository.\n\n### 3. GNOME Desktop\n*   **Xorg \u0026 GNOME**: Installs the Xorg display server and a curated set of GNOME packages for a clean, functional desktop.\n*   **GDM**: Enables the GNOME Display Manager to start automatically.\n\n### 4. Power Management \u0026 Performance\n*   **TLP**: Installs and configures **TLP** with a detailed custom configuration (`/etc/tlp.d/99-custom.conf`) to significantly improve battery life and manage performance profiles for AC vs. Battery states.\n*   **CPU Tools**: Installs `intel-ucode` (CPU microcode updates) and other power management tools.\n*   **Undervolting (Optional)**: Prompts the user to install and configure `intel-undervolt` from the AUR, applying safe undervolts to the CPU and GPU to reduce heat and power consumption.\n\n### 5. Graphics Drivers \u0026 Configuration\n*   **Intel \u0026 NVIDIA**: Installs drivers for Intel integrated graphics. It also detects if an NVIDIA GPU is present and installs the appropriate `nvidia-dkms` drivers.\n*   **Hardware Acceleration**: Configures environment variables (`/etc/environment`) for VA-API video acceleration.\n*   **GPU Switching (Optional)**: On laptops with NVIDIA Optimus, it prompts the user to install `envycontrol` and set the GPU to `integrated` mode to maximize battery life.\n\n### 6. Applications \u0026 Shell\n*   **Essential Apps**: Installs a wide range of applications from the official repositories, AUR, and Flatpak:\n    *   **Dev**: `visual-studio-code-insiders-bin`, `otf-monaspace` (font).\n    *   **Web**: `brave-bin`.\n    *   **Communication**: `dev.vencord.Vesktop` (Discord client via Flatpak).\n    *   **System**: `fish` (and sets it as the default shell), `gnome-tweaks`, `dconf-editor`, `papirus-icon-theme`.\n    *   **Gaming**: `steam`, `gamemode`, `proton-ge-custom-bin`.\n    *   **Media**: `vlc`, `com.spotify.Client` (Flatpak).\n*   **Python Tooling (Optional)**: Prompts to install `uv`, a fast Python package manager from Astral.\n\n### 7. GNOME Customization\n*   **Settings Restore**: Applies custom GNOME settings by loading the included `gnome-settings.dconf` file. This configures the dock, theme, and other preferences.\n*   **Extensions**: Installs a set of useful GNOME Shell extensions using `gnome-extensions-cli`, including:\n    *   Dash to Dock\n    *   Caffeine (disable screensaver)\n    *   Blur My Shell\n    *   AppIndicator Support\n\n### 8. System Services\n*   **Bluetooth**: Installs the necessary packages and enables the Bluetooth service.\n*   **Laptop Tweaks**: Detects if the machine is a laptop to apply specific configurations like enabling TLP.\n*   **NVIDIA Containers (Optional)**: Prompts to set up the NVIDIA Container Toolkit for using the GPU within Podman/Docker containers.\n\n## Post-Installation\n\nAfter the script completes, it will ask if you want to reboot. A reboot is recommended to ensure all changes, services, and the new default shell take effect.\n\n\u003e [!TIP]\n\u003e ⭐ If this project helps you, please give it a star! It helps others discover it too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faatricks%2Farch-matebook-x-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faatricks%2Farch-matebook-x-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faatricks%2Farch-matebook-x-pro/lists"}