updated scripts: better warn messages, added/updated dotfiles

This commit is contained in:
2026-08-03 03:51:23 +02:00
parent 9f2b05b0a1
commit d359c751be
11 changed files with 145 additions and 14 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
set -euo pipefail
warn() { echo ">>> [configure-laptop] WARNING: $*" >&2; }
SYS="{{ .system | default "desktop" }}"
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
@@ -26,7 +28,7 @@ case "$DISTRO_ID" in
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
sudo systemctl mask power-profiles-daemon || warn "systemctl mask power-profiles-daemon failed (tlp conflict may cause issues)"
;;
*)