wake-alarm/wake_alarm
Krzysztof kuhy Rudnicki db21d3015f wake_alarm + midnight_shutdown: hibernate on alarm nights instead of poweroff
- install.sh: install sleep-hook.sh to systemd-sleep hooks (step 3) and
  shutdown-wrapper.sh to /usr/local/bin/shutdown (step 5)
- shutdown-wrapper.sh: new script that intercepts shutdown calls and
  redirects to rtcwake -m disk on alarm nights (Mon/Fri/Sat/Sun), pass-
  through for reboots and cancel commands
- sleep-hook.sh: new systemd-sleep hook that restarts wake-alarm.service
  for each logged-in user after hibernate resume
- setup_midnight_shutdown.sh: check wake-alarm day; if yes set RTC alarm
  and hibernate, otherwise fall back to systemctl poweroff
2026-05-22 16:01:04 +02:00
..
tests Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
__init__.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_alarm.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_constants.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_state.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
install.sh wake_alarm + midnight_shutdown: hibernate on alarm nights instead of poweroff 2026-05-22 16:01:04 +02:00
shutdown-wrapper.sh wake_alarm + midnight_shutdown: hibernate on alarm nights instead of poweroff 2026-05-22 16:01:04 +02:00
sleep-hook.sh wake_alarm + midnight_shutdown: hibernate on alarm nights instead of poweroff 2026-05-22 16:01:04 +02:00
wake_state.json wake_alarm + midnight_shutdown: hibernate on alarm nights instead of poweroff 2026-05-22 16:01:04 +02:00
wake-alarm.service Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00