This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e # Exit on error | |
# === CONFIG === | |
DISK="/dev/sda" | |
EFI_SIZE="512M" | |
HOSTNAME="arch" | |
USERNAME="user" | |
TIMEZONE="UTC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AC_PATH="/sys/class/power_supply/ACAD/online" | |
prev_status="" | |
while true; do | |
if [[ -f "$AC_PATH" ]]; then | |
status=$(cat "$AC_PATH") | |
if [[ "$status" != "$prev_status" ]]; then | |
if [[ "$status" == "1" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
### CONFIG (update before running) ### | |
DISK="/dev/sda" # Target disk (the whole drive) | |
HOSTNAME="arch" | |
TIMEZONE="UTC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if a search term was provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <search_term>" | |
exit 1 | |
fi | |
# Store the search term from the first command-line argument | |
search_term="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Hyprland Full-DE Modular Installer | |
bold=$(tput bold); reset=$(tput sgr0) | |
log(){ echo -e "${bold}$1${reset}"; } | |
install_pkg(){ | |
for pkg in "$@"; do | |
if ! pacman -Qq "$pkg" &>/dev/null; then | |
log "Installing $pkg..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "[*] Setting up Hyprland minimal config..." | |
### Create required directories | |
mkdir -p ~/.config/hypr | |
mkdir -p ~/.config/waybar | |
mkdir -p ~/.config/wofi | |
### ---------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# --- Update System --- | |
echo "[*] Updating system..." | |
sudo pacman -Syu --noconfirm | |
# --- Install Packages --- | |
echo "[*] Installing Hyprland and essential packages..." | |
PKGS=( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "[*] Updating system..." | |
sudo pacman -Syu --noconfirm | |
echo "[*] Installing Hyprland & essential packages..." | |
PKGS=( | |
hyprland kitty firefox wofi waybar mako hyprpaper | |
wl-clipboard grim slurp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "[*] Updating system..." | |
sudo pacman -Syu --noconfirm | |
echo "[*] Installing Hyprland & essential packages..." | |
PKGS=( | |
hyprland kitty firefox wofi waybar mako hyprpaper | |
wl-clipboard grim slurp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "[*] Updating system..." | |
sudo pacman -Syu --noconfirm | |
echo "[*] Installing Hyprland & essential packages..." | |
PKGS=( | |
hyprland kitty firefox wofi waybar mako hyprpaper | |
wl-clipboard grim slurp |
NewerOlder