Default the ring hotkey to Ctrl+Alt+Shift+O and record the GNOME Xorg field test

GNOME Shell uses Ctrl+Alt+Shift+R for its screen-recording interface, so the
old default never reached the ring there (and opened the recorder instead).
Existing config files keep their value. The READMEs now list the GNOME Xorg
results; CLAUDE.md explains how to run x11_probe against an isolated config
with the ring pulse off; the handoff note ticks step 2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 11:53:12 +01:00
parent cc5cb89355
commit 169adaa3a7
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ cargo run -- -vv --no-tray # run the daemon verbosely (-vv = debug
./install.sh [--uninstall] [--yes] # user install into ~/.local; offers to install Rust via rustup if cargo is missing
```
`examples/x11_probe.rs` is an end-to-end check against a running X11 daemon (also `fake_keys`, `mover` helpers). Run the daemon with an isolated config: `XDG_CONFIG_HOME=<tmp> sourizz --no-tray`. The probe only touches its own test window, but a human moving the real mouse during the run makes it fail.
`examples/x11_probe.rs` is an end-to-end check against a running X11 daemon (also `fake_keys`, `mover` helpers). Run the daemon with an isolated config: `XDG_CONFIG_HOME=<tmp> sourizz --no-tray`, with `[ring]\npulse_speed = 0.0` in `<tmp>/sourizz/config.toml` (the probe assumes the default 56 px ring, and the pulse changes the pixel counts of its ghost-pixel check); use absolute paths and check the daemon is up before starting the probe. The probe only touches its own test window, but a human moving the real mouse during the run makes it fail.
## Architecture
+4 -2
View File
@@ -71,7 +71,7 @@ Prérequis à l'exécution :
|---|---|
| `Ctrl+Alt+Shift+M` | Interrupteur général |
| `Ctrl+Alt+Shift+S` | Projecteur |
| `Ctrl+Alt+Shift+R` | Anneau |
| `Ctrl+Alt+Shift+O` | Anneau |
| `Ctrl+Alt+Shift+T` | Traînée |
| `Ctrl+Alt+Shift+C` | Effets de clic |
| `Ctrl+Alt+Shift+K` | Frappes |
@@ -80,6 +80,8 @@ Prérequis à l'exécution :
| `Ctrl+Alt+Shift+X` | Effacer les annotations |
| `Ctrl+Alt+Shift+Y` | Montrer l'effet de clic à l'emplacement du pointeur |
L'anneau avait pour raccourci par défaut `Ctrl+Alt+Shift+R`, que GNOME Shell réserve à son interface d'enregistrement d'écran ; un fichier de configuration qui l'a déjà le conserve, donc changez-le dans la fenêtre de réglages sous GNOME.
Le mode annotation et l'aperçu du clic activent ce dont ils ont besoin (l'interrupteur général, et les effets de clic pour l'aperçu) lorsque c'est éteint.
**Dessiner.** Maintenez la touche `Ctrl` de droite et bougez le pointeur : un trait suit, puis s'efface après le relâchement. Pour plus de contrôle, ouvrez le **mode annotation** : une barre d'outils apparaît et la surcouche capture la souris et le clavier.
@@ -191,7 +193,7 @@ En toute honnêteté sur la vérification :
- **Automatisé :** 57 tests unitaires (configuration, moteur, suivi des zones à redessiner, invariants de rendu, gestion des touches avec de vraies dispositions AZERTY/QWERTY, traduction evdev, analyse des commandes). En particulier, un test de propriété vérifie que le redessin incrémental est identique au pixel près à un redessin complet pour chaque forme de projecteur, style de traînée et effet de clic.
- **X11 :** éprouvé en conditions réelles sous Debian 13, KDE Plasma 6.3, deux écrans — fenêtres de surcouche, traversée des clics, dessin de l'anneau / des clics / des traînées, aucun pixel fantôme après un mouvement rapide, raccourci global, ligne de commande, rechargement de la configuration en direct, menu de l'icône via D-Bus, fenêtre de réglages.
- **Wayland :** éprouvé contre un compositeur **KWin 6.3** imbriqué — surcouche layer-shell, rendu de l'anneau / du projecteur / de la barre d'annotation, capture du mode annotation, script KWin de position du pointeur. Lancé aussi dans une vraie session KDE Plasma 6.3.6 Wayland : l'anneau suit le pointeur grâce au script KWin, et les effets de clic, leur son, l'affichage des touches, le projecteur et le mode annotation fonctionnent avec la vraie souris, le pavé tactile et le clavier. **GNOME 48.7 (Debian 13), session Wayland :** Sourizz refuse de démarrer avec un message clair, comme prévu, et le backend X11 via XWayland ne suit le pointeur que sur les fenêtres X11. **Non testé** en vrai HiDPI, dans une session GNOME Xorg, sous Hyprland, sway, niri ou d'autres compositeurs.
- **Wayland :** éprouvé contre un compositeur **KWin 6.3** imbriqué — surcouche layer-shell, rendu de l'anneau / du projecteur / de la barre d'annotation, capture du mode annotation, script KWin de position du pointeur. Lancé aussi dans une vraie session KDE Plasma 6.3.6 Wayland : l'anneau suit le pointeur grâce au script KWin, et les effets de clic, leur son, l'affichage des touches, le projecteur et le mode annotation fonctionnent avec la vraie souris, le pavé tactile et le clavier. **GNOME 48.7 (Debian 13), session Wayland :** Sourizz refuse de démarrer avec un message clair, comme prévu, et le backend X11 via XWayland ne suit le pointeur que sur les fenêtres X11. **GNOME 48.7 sous Xorg :** le backend X11 passe les 12 vérifications de `examples/x11_probe.rs` (lancé contre un démon à configuration par défaut, pulsation de l'anneau coupée), les raccourcis globaux fonctionnent, ainsi que le projecteur, l'affichage des touches, les effets et sons de clic, le mode annotation et la fenêtre de réglages ; il n'y a pas d'icône de notification sans l'extension AppIndicator, comme indiqué plus haut. **Non testé** en vrai HiDPI, sous Hyprland, sway, niri ou d'autres compositeurs.
Considérez la prise en charge de Wayland comme une première version solide qui demande davantage de tests sur le terrain ; les rapports de bogues accompagnés de la sortie de `sourizz -vv` sont bienvenus.
+4 -2
View File
@@ -71,7 +71,7 @@ Run-time requirements:
|---|---|
| `Ctrl+Alt+Shift+M` | Master switch |
| `Ctrl+Alt+Shift+S` | Spotlight |
| `Ctrl+Alt+Shift+R` | Ring |
| `Ctrl+Alt+Shift+O` | Ring |
| `Ctrl+Alt+Shift+T` | Trail |
| `Ctrl+Alt+Shift+C` | Click effects |
| `Ctrl+Alt+Shift+K` | Keystrokes |
@@ -80,6 +80,8 @@ Run-time requirements:
| `Ctrl+Alt+Shift+X` | Clear annotations |
| `Ctrl+Alt+Shift+Y` | Show the click effect at the pointer |
The ring used to default to `Ctrl+Alt+Shift+R`, which GNOME Shell takes for its screen-recording interface; a config file that still has it keeps it, so change it in the settings window on GNOME.
Annotation mode and the click preview switch on what they need (the master switch, and the click effects for the preview) when it is off.
**Drawing.** Hold the right `Ctrl` key and move the pointer: a stroke follows and fades away after you release. For more control open the **annotation mode**: a toolbar appears and the overlay captures the mouse and keyboard.
@@ -191,7 +193,7 @@ Being honest about verification:
- **Automated:** 57 unit tests (config, engine, damage tracking, rendering invariants, key handling with real AZERTY/QWERTY layouts, evdev translation, IPC parsing). Notably, a property test checks that incremental repainting is pixel-identical to a full repaint for every spotlight shape, trail style and click effect.
- **X11:** exercised live on Debian 13, KDE Plasma 6.3, two monitors — overlay windows, click-through, ring/click/trail drawing, no ghost pixels after fast motion, global hotkey, CLI, live config reload, tray menu over D-Bus, settings window.
- **Wayland:** exercised against a nested **KWin 6.3** compositor — layer-shell overlay, ring/spotlight/annotation toolbar rendering, annotation mode capture, the KWin pointer script. Also run in a real KDE Plasma 6.3.6 Wayland session: the ring follows the pointer through the KWin script, and the click effects, click sounds, keystroke display, spotlight and annotation mode work with the real mouse, touchpad and keyboard. **GNOME 48.7 (Debian 13), Wayland session:** Sourizz refuses to start with a clear message, as intended, and the X11 backend through XWayland only follows the pointer over X11 windows. **Not tested** on real HiDPI, a GNOME Xorg session, or Hyprland, sway, niri or other compositors.
- **Wayland:** exercised against a nested **KWin 6.3** compositor — layer-shell overlay, ring/spotlight/annotation toolbar rendering, annotation mode capture, the KWin pointer script. Also run in a real KDE Plasma 6.3.6 Wayland session: the ring follows the pointer through the KWin script, and the click effects, click sounds, keystroke display, spotlight and annotation mode work with the real mouse, touchpad and keyboard. **GNOME 48.7 (Debian 13), Wayland session:** Sourizz refuses to start with a clear message, as intended, and the X11 backend through XWayland only follows the pointer over X11 windows. **GNOME 48.7 on Xorg:** the X11 backend passes the 12 checks of `examples/x11_probe.rs` (run against a default-config daemon with the ring pulse off), the global hotkeys work, and the spotlight, keystroke display, click effects, click sounds, annotation mode and settings window work; there is no tray icon without the AppIndicator extension, as stated above. **Not tested** on real HiDPI, or Hyprland, sway, niri or other compositors.
Treat Wayland support as a solid first version that needs more field testing; bug reports with `sourizz -vv` output are welcome.
+1 -1
View File
@@ -23,7 +23,7 @@ Collect first, in each session, and paste the output back:
`echo $XDG_SESSION_TYPE $XDG_CURRENT_DESKTOP; gnome-shell --version; sourizz doctor; wayland-info | grep -i layer`
1. **GNOME (Wayland session). DONE on 2026-10-30.** The Wayland backend refuses to start with a clear message (exit code 1; the autostart log shows the same). With `sourizz --backend x11` (XWayland) the daemon starts, the ring follows the pointer inside an `xterm` and stays frozen over native Wayland windows, so XWayland is not a workaround. Both READMEs now say so. Not checked: whether the overlay itself is drawn above native Wayland windows.
2. **GNOME on Xorg.** Everything should work through the X11 backend: ring, trail, clicks, sound, keystrokes, spotlight, annotation, global hotkeys, settings window. Check the tray: the README says GNOME needs the *AppIndicator* extension; verify that claim (Debian package `gnome-shell-extension-appindicator`).
2. **GNOME on Xorg. DONE on 2026-10-30.** `x11_probe` passes 12/12 (isolated default config, pulse off), global hotkeys work, Denis confirmed spotlight, keystrokes, clicks, sound, annotation and the settings window. No tray icon without the AppIndicator extension (not installed, so the claim is consistent; the extension itself was not tried). The default ring hotkey `Ctrl+Alt+Shift+R` collides with GNOME's screen-recording UI and was changed to `O`; Denis's own config file still has `R`.
3. If anything differs from the README, fix both READMEs.
## Open decision: GNOME Wayland support
+2 -1
View File
@@ -362,7 +362,8 @@ impl Default for Hotkeys {
Self {
toggle_all: k("M"),
spotlight: k("S"),
ring: k("R"),
// Not "R": GNOME Shell uses Ctrl+Alt+Shift+R for its screen-recording interface.
ring: k("O"),
trail: k("T"),
clicks: k("C"),
keystrokes: k("K"),