Skip to content

Instantly share code, notes, and snippets.

@x898
x898 / arch-efi.sh
Created September 19, 2025 08:19
Arch minimal with efi stub Boot
#!/bin/bash
set -e # Exit on error
# === CONFIG ===
DISK="/dev/sda"
EFI_SIZE="512M"
HOSTNAME="arch"
USERNAME="user"
TIMEZONE="UTC"
@x898
x898 / powerplug-watcher.sh
Created September 10, 2025 14:33
laptop power plug watcher
#!/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
@x898
x898 / arch_minimal_stub_safe.sh
Last active September 12, 2025 05:56
Arch Minimal Installation Script
#!/bin/bash
set -e
### CONFIG (update before running) ###
DISK="/dev/sda" # Target disk (the whole drive)
HOSTNAME="arch"
TIMEZONE="UTC"
@x898
x898 / find_by_content.sh
Created September 6, 2025 06:25
Find file
#!/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"
@x898
x898 / Install_hyprlanf.sh
Created August 27, 2025 12:53
Hyprland Arch linux
#!/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..."
@x898
x898 / Install.sh
Created August 23, 2025 07:39
Arch-hypr-conf
#!/bin/bash
echo "[*] Setting up Hyprland minimal config..."
### Create required directories
mkdir -p ~/.config/hypr
mkdir -p ~/.config/waybar
mkdir -p ~/.config/wofi
### ----------------------------
@x898
x898 / Install.sh
Created August 22, 2025 15:27
Perfect-arch-hyprlanf
#!/bin/bash
set -e
# --- Update System ---
echo "[*] Updating system..."
sudo pacman -Syu --noconfirm
# --- Install Packages ---
echo "[*] Installing Hyprland and essential packages..."
PKGS=(
#!/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
@x898
x898 / Install.sh
Created August 22, 2025 14:52
Arch-hyprland-simplrland
#!/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
@x898
x898 / Install.sh
Created August 22, 2025 11:10
Hyprland minimal
#!/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