Skip to content

Quick settings: Keep awake and Energy saver (PWR-1) - #1113

Merged
koulaxizis merged 3 commits into
mainfrom
claude/project-thread-pafuu5
Nov 19, 2026
Merged

koulaxizis merged 3 commits into
mainfrom
claude/project-thread-pafuu5

Conversation

@koulaxizis

Copy link
Copy Markdown
Owner

Requested by Chris · project thread

Big-OS idea 12 (Chris 2026-11-17 «Ναι, και τα δύο»; cards 2026-11-18: auto saver under 20 %, USB holds swayidle). Plan: project file power-modes/plan.md.

What

  • Keep awake pill (qsettings.js 1.2.0): tap = until off, arrow = 1 hour / 2 hours / until off / turn off. Screen Wake Lock while orOS is visible (re-requested on return), <html data-oros-awake="1">, cup on the top-bar button. Device-local oros-awake. Shown where navigator.wakeLock exists or on orOS USB.
  • Energy saver pill: manual switch, also on by itself under 20 % battery while not charging, off again on the charger; turned off on a low battery it stays off until the next charge (oros-saver = on / off-low). <html data-oros-saver> "1"/"0" + DOM event oros-power; leaf on the top-bar button.
  • Readers: shell live wallpaper (did not follow the battery before), Living land motion, weather desktop, seasonal effects, widgets (1 s tick → once a minute). Each keeps its own battery rule only when the attribute is missing. Sync, notifications, alarms, timers, sound untouched.
  • Strings EN/EL/DE, help appearance EN/EL/DE, Bible Part II qsettings Power + device-local keys.
  • No new file, no sw.js change. Companion: koulaxizis/oros-usb PR (extension sends the hold with the watchdog ping).

Not yet (stamp when first in queue)

APP_VERSION (+1 patch), Bible Part IX + XII, What's new.

Tests

  • node --test tests/*.test.js: all pass (3 new tests in tests/qsettings.test.js).
  • Playwright Chromium (LANG=C.UTF-8), desktop EN + 360 px EL, stubbed wakeLock/getBattery: pills shown, 1-hour menu → attribute + "Until …" + one wake-lock request, released when off; saver toggle sets the flag, fires one event; at 15 % battery saver is on by itself with its second line, a press stores off-low, the charger clears it; no page errors, no horizontal overflow.
  • Not tested: real phone/PC screen staying on, real battery, Safari, orOS USB hardware.

Generated by Claude Code

Keep awake holds a Screen Wake Lock (1 hour, 2 hours, until off) and
sets <html data-oros-awake>; Energy saver (manual, and by itself under
20 % battery while not charging) sets <html data-oros-saver> and the
oros-power event, read by the live wallpaper, Living land, the weather
desktop, seasonal effects and widgets. Both device-local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YL6AbhRGBiYRvtqQLR2TDN
@koulaxizis
koulaxizis merged commit da48402 into main Nov 19, 2026
8 checks passed
@koulaxizis
koulaxizis deleted the claude/project-thread-pafuu5 branch November 19, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants