Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Installed license notice:** Linux and macOS installers copy the root `LICENSE` to `~/.local/lib/sleep-warning/LICENSE` and refuse to install when that file is missing. Installed popup, schedule, and lock behavior is unchanged.
- **Public docs:** Desktop Mode is described as supported, and Gaming Mode as experimental and opt-in, with the 2026-10-19 visibility result and the 2026-10-20 click and Enter result. The still-open Deck checks stay listed. Pause durations are 1, 2, 3, 5, 10, or 15 minutes (default 5), then a cooldown of 6, 8, 12, or 24 hours (default 24), measured from the last pause. The graphical schedule picker is documented as quarter-hour steps. Emergency stop text pairs Linux stop with disable, and macOS `bootout` with `disable`, and includes re-enable. Configure lock hours are described as tighten-only, and uninstall is described as available outside uninstall-block hours. macOS docs state that auto-close is forced at runtime and that the per-day cap is 16 hours. Installed names and behavior are unchanged.
- **Gamescope overlay hit region:** Experimental Gaming Mode dialogs (warning, countdown respawn, and pause notice) are placed at the top-left of the nested `:0` canvas and are at least two thirds of that canvas tall, still full root width and still capped at the root height. The 2026-10-20 capture showed the cursor confined to roughly the top third while a short centered banner sat outside it. gamescope paints the overlay centered but draws the cursor offset by the window's position, so the window has to sit at 0,0. The zenity move uses `xdotool` under gamescope even when `wmctrl` is installed, since `wmctrl` cannot list windows there. Desktop Mode is unchanged. `STEAM_OVERLAY=1` and `STEAM_INPUT_FOCUS=1` stay as they are. Patch; the 16 h cap, popup watchdog, and escape hatch are unchanged. **Steam Deck verified 2026-10-20** (cursor reaches chrome; click works; Enter did not fire into Steam).
- **Gaming Mode visibility check (docs):** `dev-docs/STEAMOS_GAMING_MODE.md` records the 2026-10-31 docked Steam Deck check. yad and zenity warnings were visible over a native fullscreen game during play, including through countdown respawns. The doc also explains that the scheduled service's PATH decides which dialog tool `auto` picks. The README, `GETTING_STARTED.md`, `user-docs/USER_GUIDE.md` and `user-docs/CONFIGURATION.md` list the result, and the still-unchecked items now name handheld (undocked) use and Proton titles in place of "docked versus undocked", and add the case where the Steam overlay or Quick Access Menu is already open when the warning spawns. The investigation notes stay in `dev-docs/development/steam-deck-ingame-overlay-investigation.md` as a closed record with a reusable agent prompt. Gaming Mode stays experimental and off by default. No code changed.
- **Desktop Mode fullscreen check (docs):** `dev-docs/STEAMOS_GAMING_MODE.md` records a 2026-10-31 Desktop Mode check on the same Deck. yad and zenity warnings appeared above fullscreen Tyranny, and zenity stayed on top through countdown respawns. The game kept fullscreen and got input back after OK (tested with zenity). The doc no longer says Desktop Mode uses X11: SteamOS 3.8 runs Plasma on Wayland, and the dialogs open as native Wayland windows, so `POPUP_IMMOVABLE` does not apply there. The README and `user-docs/CONFIGURATION.md` say so. The immovable gap and a forced-X11 test are in `dev-docs/TO_DO.md`, and the existing auto-close log-wording item notes that it also happens in Desktop Mode. No code changed.
- **Gaming Mode warning buttons (docs):** Document that button labels follow the dialog tool — zenity `--warning` has no Cancel (OK only, or OK + Pause); yad may show Cancel; kdialog may say Dismiss. A missing Cancel in Gaming Mode with zenity is expected. Prefer `DIALOG_TOOL=yad` for OK/Cancel-style chrome.

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Sleep Warning System displays warning popups when you're using your computer
- 🛡️ At most 16 hours per day in each lockout category. The wizard will not save a longer day
- 🔒 During lock hours, configuration can only get stricter (tighten-only)

**SteamOS:** Desktop Mode is supported. Gaming Mode is experimental and off until you turn it on. A Deck check on 2026-10-19–20 showed the popup, click, and Enter. Pause-enabled buttons, touch, countdown input, the Quick Access Menu after close, forced timeout, and docked versus undocked are still unchecked. Details are in [user-docs/USER_GUIDE.md](user-docs/USER_GUIDE.md#steamos-gaming-mode-compatibility).
**SteamOS:** Desktop Mode is supported. Gaming Mode is experimental and off until you turn it on. A Deck check on 2026-10-19–20 showed the popup, click, and Enter. A docked check on 2026-10-31 showed the warning over a native fullscreen game while paused (yad) and during active play (yad and zenity). Still unchecked: pressing Pause and the pause notice, touch, countdown input, the Quick Access Menu after the popup closes, the Steam overlay or Quick Access Menu already open when the warning spawns, forced timeout, handheld (undocked) use, and Proton titles. Details are in [user-docs/USER_GUIDE.md](user-docs/USER_GUIDE.md#steamos-gaming-mode-compatibility).

## Before You Begin

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ This software is provided "AS IS", without warranty of any kind, express or impl
**Compatibility:**
- Compatibility cannot be guaranteed for all systems
- Some features may not work on all Linux distributions or desktop environments
- SteamOS Desktop Mode is supported. Gaming Mode overlay support is experimental and off by default (`GAMING_MODE_EXPERIMENTAL_ENABLED=false`). A Steam Deck check on 2026-10-19 showed the popup over a fullscreen game, and a 2026-10-20 check showed click and Enter reaching the dialog without Enter also firing into Steam. Still unchecked: pause-enabled buttons, touch, countdown input, the Quick Access Menu after the popup closes, forced timeout, and docked versus undocked. Some fullscreen games can still hide the popup.
- On Wayland/gamescope, always-on-top behavior is best-effort and full-screen games may block popups
- SteamOS Desktop Mode is supported. Gaming Mode overlay support is experimental and off by default (`GAMING_MODE_EXPERIMENTAL_ENABLED=false`). A Steam Deck check on 2026-10-19 showed the popup over a fullscreen game, and a 2026-10-20 check showed click and Enter reaching the dialog without Enter also firing into Steam. A docked 2026-10-31 check showed the warning over a native fullscreen game in all five in-game runs: paused (yad) and during active play (yad and zenity), including through countdown respawns with a 90-second minimum display. A sixth run on the Gaming Mode home screen was the control. Still unchecked: pressing Pause and the pause notice, touch, countdown input, the Quick Access Menu after the popup closes, the Steam overlay or Quick Access Menu already open when the warning spawns, forced timeout, handheld (undocked) use, and Proton titles. Only one game has been tested, so other fullscreen games may still hide the popup.
- On Wayland/gamescope, always-on-top behavior is best-effort and full-screen games may block popups. On KDE Plasma Wayland (the SteamOS Desktop Mode default), popups are native Wayland windows, so `POPUP_IMMOVABLE` does not apply. A 2026-10-31 Desktop Mode check still showed them on top of a native fullscreen game.

**Support:**
- Provided on a best-effort basis with no guarantees
Expand All @@ -58,7 +58,7 @@ This software is provided "AS IS", without warranty of any kind, express or impl
- 🔔 **Modal warning popups** - Ensures you're aware of late-night usage
- 🚀 **Easy installation** - Automated installation script handles everything
- 🔄 **Auto-start on boot** - Runs automatically via systemd timer
- 🎮 **Desktop and experimental Gaming Mode** - Desktop Mode is supported. Gaming Mode is experimental, off by default, and partially checked on a Steam Deck (2026-10-19 and 2026-10-20)
- 🎮 **Desktop and experimental Gaming Mode** - Desktop Mode is supported. Gaming Mode is experimental, off by default, and checked on a Steam Deck over a fullscreen game during play (2026-10-19, 2026-10-20 and 2026-10-31)
- 🐧 **Cross-distribution** - Works on Linux with systemd, and on macOS with a user LaunchAgent
- 🔒 **Minimum display time** - Ensures warnings are visible for a set duration
- 📌 **Immovable windows** - Prevents popup from being moved during countdown (optional)
Expand Down Expand Up @@ -271,8 +271,8 @@ systemctl --user daemon-reload

### Linux Distributions
- ✅ Steam OS (Arch-based)
- **Desktop Mode**: Supported on SteamOS Desktop Mode (KDE on X11). Popups work with some full-screen games; results vary by game, and exclusive full-screen games may still cover them.
- **Gaming Mode (Experimental)**: Off by default (`GAMING_MODE_EXPERIMENTAL_ENABLED=false`). Option 12 in `sleep-warning-configure` routes dialogs through `gamescope`'s Xwayland overlay plane (`:0`) with `STEAM_OVERLAY=1` / `STEAM_INPUT_FOCUS=1` and forced auto-close. Deck results: visible on 2026-10-19; click and Enter reached the dialog on 2026-10-20, and Enter did not also fire into Steam. Still unchecked: pause-enabled buttons, touch, countdown input, the Quick Access Menu after close, forced timeout, and docked versus undocked. See [dev-docs/STEAMOS_GAMING_MODE.md](dev-docs/STEAMOS_GAMING_MODE.md).
- **Desktop Mode**: Supported on SteamOS Desktop Mode (KDE Plasma on Wayland, with Xwayland for X11 apps). yad and zenity open as native Wayland windows there, which `wmctrl` and `xdotool` cannot manage, so `POPUP_IMMOVABLE` and the X11 keep-above and positioning features do not apply. A 2026-10-31 Deck check showed the popup above a native fullscreen game, including through countdown respawns. Other games, Proton titles, and exclusive full-screen modes are untested and may still cover it. See [dev-docs/STEAMOS_GAMING_MODE.md](dev-docs/STEAMOS_GAMING_MODE.md#on-device-2026-10-31-desktop-mode-over-a-fullscreen-game).
- **Gaming Mode (Experimental)**: Off by default (`GAMING_MODE_EXPERIMENTAL_ENABLED=false`). Option 12 in `sleep-warning-configure` routes dialogs through `gamescope`'s Xwayland overlay plane (`:0`) with `STEAM_OVERLAY=1` / `STEAM_INPUT_FOCUS=1` and forced auto-close. Deck results: visible on 2026-10-19; click and Enter reached the dialog on 2026-10-20, and Enter did not also fire into Steam; on 2026-10-31 (docked) visible over a native fullscreen game while paused (yad) and during active play (yad and zenity), including through countdown respawns. Still unchecked: pressing Pause and the pause notice, touch, countdown input, the Quick Access Menu after the popup closes, the Steam overlay or Quick Access Menu already open when the warning spawns, forced timeout, handheld (undocked) use, and Proton titles. See [dev-docs/STEAMOS_GAMING_MODE.md](dev-docs/STEAMOS_GAMING_MODE.md).
- ✅ Ubuntu (18.04+)
- ✅ Debian (8+)
- ✅ Fedora
Expand Down Expand Up @@ -327,6 +327,8 @@ The system automatically detects which dialog tool is available and uses them in
- Immovable popup windows during minimum display time
- Better window state detection

These tools only manage X11 windows. On a Wayland session (including SteamOS Desktop Mode), native Wayland dialogs are outside their reach.

Without these tools, popups will still appear but may not stay on top of other windows or support position control.

## Troubleshooting
Expand Down
Loading
Loading