updated dotfiles, fixed install scripts, added missing packages

This commit is contained in:
2026-08-03 02:53:32 +02:00
parent e845d8bda1
commit e854d4a22e
17 changed files with 309 additions and 76 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
# run_once_60-configure-laptop.sh
# Laptop only configuration.
set -euo pipefail
SYS="{{ .system | default "desktop" }}"
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
if [ "$SYS" != "laptop" ]; then
echo ">>> [configure-laptop] system=$SYS, skipping (not a laptop)"
exit 0
fi
case "$DISTRO_ID" in
arch)
echo ">>> [configure-laptop] arch"
sudo pacman -Syu --noconfirm --needed tlp power-profiles-daemon
sudo systemctl enable tlp
sudo systemctl enable power-profiles-daemon
;;
ubuntu)
echo ">>> [configure-laptop] ubuntu"
sudo apt-get install -y tlp tlp-rdw power-profiles-daemon
sudo systemctl enable tlp
# tlp and power-profiles-daemon conflict on most hardware — mask the latter
sudo systemctl mask power-profiles-daemon || true
;;
*)
echo ">>> [configure-laptop] unsupported distro: ${DISTRO_ID:-unknown}, skipping"
exit 0
;;
esac
echo ">>> [configure-laptop] done"