Commit Graph

17 Commits

Author SHA1 Message Date
denis b99c30a9e8 Add a sourizz-restart script and record the autostart field test
sourizz-restart stops the running daemon (if any), waits until it is gone
and starts a new one detached from the terminal; extra arguments go to the
new daemon and SOURIZZ_LOG keeps its output. install.sh installs and
removes it. The READMEs document it in both languages and now say that
autostart was checked on KDE, GNOME, Xfce, Cinnamon and MATE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 18:48:31 +01:00
denis 76febe1702 READMEs: explain how to run Sourizz in the background
Sourizz has no separate resident mode: running it with no subcommand is
the daemon. Document how to detach it (setsid -f), check and stop it, start
it at login with `sourizz autostart enable`, and the Hyprland and sway
equivalents, in both languages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 18:25:25 +01:00
denis fc1b5caf52 READMEs: MATE 1.26 tested, with no tray icon; tray status per desktop
12 automatic checks, global hotkeys and the manual checks pass on MATE 1.26
(X11, marco compositing on by default). Its panel has no StatusNotifier
support, so Sourizz shows no tray icon there; the requirements now say which
desktops give an icon (KDE, Xfce, GNOME with AppIndicator, Cinnamon with
xapp-sn-watcher) and which do not (MATE).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:37:52 +01:00
denis 95396a6e82 READMEs: Cinnamon 6.4 tested; Cinnamon also takes Ctrl+Alt+Shift+R
12 automatic checks, global hotkeys, and the manual checks pass on Cinnamon 6.4
(X11). The tray icon needs xapp-sn-watcher (only recommended by Debian) and
appears by itself at login thanks to the tray fix. Cinnamon binds
Ctrl+Alt+Shift+R to screen recording like GNOME, which confirms the ring's
default hotkey change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:30:35 +01:00
denis 4782bbadd0 Tray: wait for the notification area instead of giving up, and record the Xfce field test
Started at login by the autostart, Sourizz could run before the session's panel
published org.kde.StatusNotifierWatcher; ksni then failed once and the daemon
stayed without an icon until restarted (seen on Xfce 4.20). The tray is now
spawned with assume_sni_available(true), so it registers as soon as the watcher
appears. Checked by stopping xfce4-panel, starting the daemon, and restarting
the panel: the icon registered by itself.

The READMEs list Xfce 4.20 as tested (12 automatic checks, global hotkeys,
ring, trail, spotlight, keystrokes, clicks and sounds, annotation, settings
window, tray icon and menu).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 13:16:10 +01:00
denis e5bfc19aa6 READMEs: the tray icon works on GNOME with the AppIndicator extension
Tested on GNOME 48.7 (Xorg session) with Debian's gnome-shell-extension-appindicator:
the icon appears and its menu works. Without the extension there is no icon.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:44:14 +01:00
denis 61b30f4305 State plainly that GNOME's Wayland session is unsupported, and where Sourizz works
The READMEs get a status column in the compatibility table (tested, not tested,
not supported), an opening line about the supported desktops, and a clear
paragraph on GNOME: no layer-shell, XWayland is no workaround, and the Xorg
session is gone from GNOME 49. The error message on such a compositor says the
same. The decision is recorded in CLAUDE.md; the handoff note is removed since
its content has been absorbed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:37:42 +01:00
denis 169adaa3a7 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>
2026-10-30 11:53:12 +01:00
denis cc5cb89355 Record the GNOME Wayland field test: clear refusal, XWayland is no workaround
On GNOME 48.7 (Debian 13) the Wayland backend refuses to start with a clear
message. The X11 backend through XWayland starts but only tracks the pointer
over X11 windows, so the ring stays frozen over native Wayland windows.
Document it in both READMEs and tick step 1 in the handoff note.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:37:42 +01:00
denis 4286196990 READMEs: annotation mode confirmed on a real KDE Plasma Wayland session
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:15:40 +01:00
denis bd61894cb3 READMEs: record the real-session Wayland checks on KDE Plasma
Click effects, click sounds, keystroke display and spotlight were confirmed on
a real KDE Plasma 6.3.6 Wayland session. Annotation mode is still unverified.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:13:42 +01:00
denis 57bea85de4 Fix the pointer freezes on Wayland: stop reopening /dev/input nodes every 3 s
Devices::rescan reopened every event node it did not keep (power button, audio
jacks, video bus...) on each call. Opening a node takes 25-70 ms on the
field-test laptop, so each rescan blocked the daemon for ~650 ms and the
pointer froze for that long every 3 s while Sourizz was drawing. Rejected nodes
are now remembered and only new ones are opened.

Found with examples/layer_probe.rs, a bare layer-shell overlay with knobs that
was extended one Sourizz component at a time until the stall reappeared. The
README limitation about trails under KWin was wrong and is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:08:01 +01:00
denis ba706a627f Correct the KWin Wayland stall note: it happens with any drawing, not only the trail
A controlled rerun showed the freeze with the classic ring alone, so the
earlier "trail only" conclusion was wrong. It does not occur with all effects
off, without Sourizz, or when dragging a window. Cause still unknown; the
README now recommends the X11 session instead of turning the trail off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:52:56 +01:00
denis 11cd112f5f Document the KWin Wayland trail stall seen on real hardware
Field test on KDE Plasma 6.3.6 (Intel + NVIDIA hybrid laptop): the pointer
freezes for ~0.5 s every 2-3 s while a trail is drawn. Measurements ruled out
our loop, buffer allocation, damage size, the D-Bus feed and callback waits.
Record it as a known limitation in both READMEs and in CLAUDE.md, and update
what was tested on Wayland.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:29:59 +01:00
denis 593d76242a install.sh: offer to install Rust with rustup when cargo is missing
Instead of stopping with "Rust is required", the script now looks for an
existing rustup environment, then offers to install the toolchain with
rustup (minimal profile). It asks first, unless --yes is given, and
refuses to install silently without a terminal. It checks for a C linker
and curl/wget beforehand and downloads the rustup script to a file before
running it. --uninstall does not need Rust. Document it in both READMEs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:17:44 +01:00
denis 105b4be66e Make the annotation and click-preview hotkeys switch on what they need
Ctrl+Alt+Shift+A did nothing while the master switch was off, and
Ctrl+Alt+Shift+Y did nothing unless the master switch and the click
effects were both on, with no feedback. They now enable what is missing
(and persist it, like the other toggles) before acting. Document the Y
hotkey in both READMEs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:12:17 +01:00
denis fee42ae92d Initial commit: Sourizz, a Linux cursor highlighter
Spotlight, ring, trails, click effects, keystroke display and on-screen
annotation for X11 and Wayland, written in Rust. One drawing engine
(engine.rs) shared by an X11 backend (override-redirect ARGB windows,
XInput2 raw events) and a Wayland backend (wlr-layer-shell, evdev input,
Hyprland/KWin pointer sources), plus a tray, a CLI socket and an egui
settings window.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:41:11 +01:00