Skip to content

umfhero/Lazy-Sleep

Repository files navigation

Lazy Sleep - Smart Shutdown Timer

An Electron-based shutdown timer app. Set a timer with a slider or manual input, schedule Windows shutdown, and forget about it.

Todo

Core Functionality

  • Slider timer — Horizontal slider (0–180 min) to pick shutdown delay
  • Custom time input — Toggle to manual hours/minutes entry for any duration
  • Schedule shutdown — Execute shutdown -s -t <seconds> via Node child_process
  • Cancel shutdown — Execute shutdown -a to abort a pending shutdown
  • Countdown display — Show the calculated shutdown time (e.g. "Shutdown at: 11:42 PM")
  • Prompt before shutdown — If >3 min scheduled, prompt user 3 min before to confirm/cancel
  • Immediate shutdown confirmation — Confirm dialog when slider is at 0

UI / Visuals (follows designrules.md)

  • Flat, opaque UI — No gradients, no shadows, no glassmorphism, solid matte backgrounds
  • 1px border containers — All panels, buttons, inputs defined by thin dark borders
  • Technical sans-serif typography — Clean, utilitarian font (e.g. Inter, IBM Plex Sans)
  • Functional type scaling — Large countdown/time display, small uniform labels
  • Muted natural palette — Monochromatic base (off-white / sage / dark grey) with black text/lines
  • No emojis — Thin-stroke line-art icons only
  • Rigid grid layout — Dashboard/schematic aesthetic, compartmentalised zones
  • Aggressively 2D — No depth, no layering effects, hard edges only

Theming

  • Theme switcher — Dropdown to select: white, light grey, dark grey, black
  • Persist theme — Save selection to config.json, restore on launch

Window Behaviour

  • Always on top — Window stays above all others
  • Invisibility mode — Toggle to auto-hide (opacity 0) when mouse leaves detection radius; reappear on hover
  • Personalised greeting — Display "Hello, {username}!" using OS account name

Packaging

  • Electron Builder — Package as standalone .exe for Windows via electron-builder
  • Custom icon — App icon (clock2.ico) applied to window and exe

Development

npm install
npm start

Build

npm run build

Requirements

  • Windows 10/11
  • Node.js 18+

About

QoL auto shutdown app (electron)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors