idle angepasst

This commit is contained in:
humocs-man
2026-09-29 18:31:35 +02:00
parent 51963c4223
commit 18476a6bec
4 changed files with 30 additions and 12 deletions
+10
View File
@@ -17,6 +17,7 @@ TARGETS=(
".config/noctalia/templates.toml"
".config/noctalia/shell.toml"
".config/noctalia/wallpaper.toml"
".config/noctalia/idle.toml"
".config/mimeapps.list"
)
@@ -37,3 +38,12 @@ if [[ ! -e "${HOME}/.config/kanshi/config" ]]; then
echo "Keine kanshi-Config gefunden. Erzeugen mit:"
echo " kanshi-autoconfig --apply (schreibt ~/.config/kanshi/config)"
fi
# Migration: swayidle-Block aus bestehender Autostart entfernen
# (Idle macht Noctalia nativ; Doppel-Feuerung vermeiden). Mit Backup.
AUTOSTART="${HOME}/.config/labwc/autostart"
if [[ -f "${AUTOSTART}" ]] && grep -q 'swayidle' "${AUTOSTART}"; then
cp -n "${AUTOSTART}" "${AUTOSTART}.bak" 2>/dev/null || true
sed -i '/^# 5\. Idle-Handling/,/before-sleep.*&$/d' "${AUTOSTART}"
echo "migriert: swayidle-Block aus ${AUTOSTART} entfernt (Backup .bak)"
fi