English | Italiano | Français | Español | 中文
Note: This Rust port was completely vibecoded from the original project shutdown_timer (originally developed in Python/CustomTkinter).
A compact, modern, and responsive scheduled computer shutdown timer, featuring a native Dark/Light Mode GUI, multilingual support, cross-platform compatibility (Windows, macOS, Linux), and smart sleep prevention.
-
Performance and Responsiveness:
- Compiled to native machine code with Rust and
eframe/egui. - Standalone single executable, instant startup, minimal memory consumption (< 30 MB).
- No external dependency on Python or heavy runtimes.
- Compiled to native machine code with Rust and
-
Settings Panel and Themes:
- Gear icon at the bottom-right corner to open the quick settings modal.
- Theme Switch: Quick toggle between:
- Dark (Dark Mode)
- Light (Light Mode)
- System (Auto - follows OS preferences)
- Multilingual Support (i18n):
- English (
en) - Italian (
it) - French (
fr) - Spanish (
sp) - Chinese (
ch) - Automatic system language detection on first run.
- English (
-
Hybrid Portable & Installed Mode:
- Zero footprint by default (no configuration file is created initially).
- Once the user changes language or theme in settings,
config.jsonis generated. - In Portable mode (or if
portable.txtexists),config.jsonis saved in the application directory. - In Installed mode,
config.jsonis saved in standard user directories:- Windows:
%APPDATA%\ShutdownTimer\config.json - macOS:
~/Library/Application Support/ShutdownTimer/config.json - Linux:
$XDG_CONFIG_HOME/ShutdownTimer/config.jsonor~/.config/ShutdownTimer/config.json
- Windows:
-
Native Cross-Platform Integration:
- Windows:
- Automatic PC and display sleep prevention via
SetThreadExecutionStateandPowerCreateRequest. - System shutdown via
shutdown /s /t <sec>and abort withshutdown /a. - Automatic Dark Mode detection from the Windows Registry.
- Automatic PC and display sleep prevention via
- macOS:
- Sleep prevention using the native
caffeinateutility. - Safe user-level shutdown via AppleScript (
osascriptwithSystem Events), without requiring root or sudo permissions. - System language detection via
defaults read -g AppleLocale.
- Sleep prevention using the native
- Linux:
- Standby inhibition via
systemd-inhibit. - Scheduled shutdown with abort support via
systemctl poweroff/shutdown. - Dark Mode detection from GNOME/freedesktop settings.
- Standby inhibition via
- Windows:
-
Intuitive Timer Controls:
- 3 adjustable spinboxes for Hours (0-99), Minutes (0-59), and Seconds (0-59).
- Quick
+and-buttons with circular wrap-around and directly editable text field. - Large digital countdown display in
HH:MM:SSformat. - Start, Pause, Resume, and Reset buttons.
-
Safety and Confirmation Modals:
- Error modal when attempting to start a timer with zero duration.
- Confirmation modal on Reset to avoid accidental cancellations.
- Window close interception
[X]when a timer is running with an exit confirmation dialog.
The repository includes a complete automated CI/CD workflow in .github/workflows/build-and-release.yml that automatically builds all release formats on every tag push (v*) or manually via Run workflow:
| Platform | Package Format | Generated Artifact |
|---|---|---|
| Windows | Portable (Standalone Zip) | ShutdownTimer-Windows-Portable.zip |
| Windows | Installer (Inno Setup) | ShutdownTimer-Windows-Setup.exe |
| macOS | Apple Disk Image & Bundle | ShutdownTimer-macOS.dmg, .tar.gz |
| Linux | AppImage | ShutdownTimer-x86_64.AppImage |
| Linux | Flatpak Bundle | ShutdownTimer.flatpak |
- Rust & Cargo (installable via rustup.rs)
cargo build --releasecargo testshutdown_timer_rust/
├── .github/
│ └── workflows/
│ └── build-and-release.yml # CI/CD GitHub Actions (Windows, macOS, AppImage, Flatpak)
├── assets/
│ ├── GFSNeohellenic-Bold.ttf # Embedded font
│ ├── power.ico # Application icon (Windows)
│ ├── power_icon.png # Window icon (cross-platform)
│ ├── settings_icon.png # Gear icon for Dark Mode
│ ├── settings_icon_dark.png # Gear icon for Light Mode
│ └── shutdown_timer_logo.png # Integrated logo
├── installer/
│ ├── flatpak/
│ │ └── io.github.lucag.ShutdownTimer.yml # Flatpak Manifest
│ ├── linux/
│ │ ├── io.github.lucag.ShutdownTimer.desktop
│ │ └── io.github.lucag.ShutdownTimer.metainfo.xml
│ ├── macos/
│ │ └── Info.plist # macOS App Bundle configuration
│ └── windows/
│ └── setup.iss # Inno Setup script for Windows Installer
├── src/
│ ├── main.rs # Entry point, window setup and font loading
│ ├── app.rs # Application logic, UI and settings modal
│ ├── spinbox.rs # Spinbox widget for hours, minutes, seconds
│ ├── config.rs # Hybrid configuration (Portable / System)
│ ├── i18n.rs # Translation management and system locale detection
│ ├── platform.rs # Native cross-platform abstraction (Windows, macOS, Linux)
│ ├── theme.rs # Palette management and Dark/Light/Auto theme
│ └── timer.rs # Countdown timer engine
├── Cargo.toml # Rust package manifest
├── LICENSE # MIT License
└── README.md
This project is licensed under the MIT License. See the LICENSE file for the full terms and conditions.





