A modern, lightweight, and blazing-fast Windows desktop utility for scheduled system power actions.
Features • Hotkeys • Development • License
- Interval Mode: Set countdown timers in seconds, minutes, or hours with quick increment/decrement controls.
- Timestamp Mode: Schedule system events for a precise target date and time (today, tomorrow, or a custom date).
- Quick Presets & Custom Adjustments: Fast one-click presets and customizable time adjustment steps.
Direct native Windows integration for all critical power actions:
- Sleep & Hibernate: Triggered via direct low-level Win32 APIs.
- Shutdown & Restart: Controlled system power-off and reboots.
- Lock Workstation & Sign Out: Instant or scheduled screen locking and user logoff.
- Accidental Click Protection (Lock Mode): Prevent accidental aborts or modifications while a timer is ticking.
- Customizable Warning Notifications: Receive native Windows alerts before actions execute (with customizable trigger times and sound effects).
- System Tray Integration: Minimize or close to tray, monitor remaining time in tray tooltip, and control playback from the context menu.
- Auto-Launch & Background Mode: Optional startup on Windows boot and silent start in minimized state.
- Theme Support: Seamless Light, Dark, and System theme switching.
- Multilingual Support: Built-in English and Russian translations.
- Automatic & Manual Updates: Built-in updater with GitHub release changelog preview.
WinSleep is built for speed and full keyboard accessibility:
| Shortcut / Category | Action |
|---|---|
Space |
Start / Pause / Resume timer |
Ctrl + Space |
Cancel timer |
Ctrl + Shift + E |
Execute selected action immediately |
+ / - |
Increase / Decrease timer duration |
B |
Lock / Unlock controls (protection mode) |
S |
Select action: Sleep |
H |
Select action: Hibernate |
P |
Select action: Shutdown |
R |
Select action: Restart |
L |
Select action: Lock screen |
Q |
Select action: Sign out |
Ctrl + , |
Open / Close Settings |
- Node.js (v24 or newer recommended)
- Rust & Cargo (latest stable). Refer to the Tauri Prerequisites Guide.
# Clone the repository
git clone https://github.com/Autapomorph/winsleep.git
# Install dependencies
npm install
# Run in Tauri desktop development mode
npm run tauri devTo compile the native Windows installer (.exe):
npm run tauri buildNote
Tauri Updater & Code Signing: Production bundles generated for distribution require signing artifacts (.sig) configured in tauri.conf.json for the built-in auto-updater.
-
In CI/CD (GitHub Actions): Automated releases sign bundles using
TAURI_SIGNING_PRIVATE_KEYand generatelatest.json. -
Local Builds: To build installers locally without private signing keys, you can provide temporary signing keys via environment variables (
TAURI_SIGNING_PRIVATE_KEY) or override the config in the CLI:npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":false}}'
Distributed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for more details.