Windows-first desktop utility with an interactive Terminal User Interface (TUI) for scheduling system power actions.
- Interactive TUI: Clean black/blue/white visual layout with purple titles and orange alerts.
- Flexible Timing: Schedule via relative duration (
25m,2h) or exact clock time (15:30,3:30 PM) with next-day rollover. - 4 Core Actions: Shutdown, Restart, Sleep, and Lock.
- Safety First: Two-step confirmation gates for scheduling and cancellation.
- Unsaved Work Protection: Non-forced execution is attempted first; only if blocked by running applications does Smart Power grant an extra 2-minute grace period before applying forced execution (
/f). - Detached Execution: Closing the terminal window does not cancel the schedule. Reopening Smart Power re-attaches directly to the live countdown.
- Overdue Detection: If the machine wakes from Sleep past the target time, the action safely aborts with an alert instead of executing unexpectedly.
python -m src.smart_powerOr with PYTHONPATH=src:
python -m smart_power$env:SMART_POWER_DRY_RUN="1"
python -m src.smart_powerpython -m unittest discover tests -v