Dotfiles update 2025-12-25 15:45

This commit is contained in:
Aaron D. Lee
2025-12-25 15:45:29 -05:00
parent c4ccb4150d
commit b1dc1877d1
17 changed files with 4437 additions and 243 deletions

31
machines/type-laptop.zsh Normal file
View File

@@ -0,0 +1,31 @@
# ============================================================================
# Laptop Machine Type Configuration
# ============================================================================
# Loaded on machines detected as laptops (has battery).
# ============================================================================
# --- Power-aware settings ---
# Reduce resource usage on battery
# Shorter MOTD on laptops (faster)
# MOTD_STYLE="mini"
# --- Battery monitoring alias ---
alias battery='cat /sys/class/power_supply/BAT0/capacity 2>/dev/null && echo "%" || echo "No battery"'
alias power='cat /sys/class/power_supply/BAT0/status 2>/dev/null || echo "Unknown"'
# --- Brightness control (if available) ---
if command -v brightnessctl &>/dev/null; then
alias bright='brightnessctl set'
alias brightness='brightnessctl get'
fi
# --- WiFi helpers ---
if command -v nmcli &>/dev/null; then
alias wifi='nmcli device wifi list'
alias wifi-connect='nmcli device wifi connect'
fi
# --- Suspend/hibernate helpers ---
alias suspend='systemctl suspend'
alias hibernate='systemctl hibernate'