Commit Graph
10 Commits
Author SHA1 Message Date
ChaseandClaude Opus 5.5 e68d2fa440 Add touch screen support
A blind user can now run the desktop with the touch screen as the only
input, in the style of TalkBack, VoiceOver and NVDA touch. It is off by
default: "Use the touch screen with gestures" in preferences, the
"Touch screen" quick setting, or Cthulhu+Ctrl+Alt+T (toggle-touch-screen).

Input: internal/platform/evdev reads the touch screen from the Linux input
layer in pure Go and grabs it with EVIOCGRAB while touch is on, so no other
program sees touches until it is turned off. It needs read access to
/dev/input (the input group, as Fenrir already needs); Cthulhu never uses
sudo. internal/touch recognizes taps, double and triple taps, holds, double
tap and hold, flicks, two finger rotation and up to ten fingers.

Gestures send Cthulhu's keyboard commands through the normal command
dispatch. Modes, chosen with a three finger tap, each have their own rotor:
navigation (default: items, then scroll, windows, workspaces or
notifications), text (lines, words, characters), browse (page order, then
element types; entered automatically on web pages), object (tree) and
speech settings. Exploring speaks what is under the finger and moves object
review there; double tap activates. docs/touch-support.md has the full
gesture table, design, testing notes and open issues.

Supporting changes:
- Object review gains next and previous item in reading order, skipping
  unnamed containers, and object-activate, which runs the default action of
  the object of interest. Its results no longer need a known focus, because
  a touch user may never produce a focus event.
- browserModeController exposes Browsing for other goroutines.
- internal/i3command sends i3 commands; internal/i3ipc stays observe-only.
- X11 helpers find the client under a point and send XTest clicks and keys.
  The window lookup releases the X11 guard before the XRes fallback, which
  takes the guard itself; a native test reproduces the old deadlock.
- Mouse review stays quiet for one second after touch input.

Tested live on a Lenovo Yoga 7 2-in-1 14AKP10 (Wacom HID 53FC, ten touch
points) under i3, MATE and in Brave, Thunar and GTK dialogs. Not yet
handled: the lock screen, rotation and multiple monitors, pass-through, and
touch typing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:09:45 -05:00
hjozwiak 91edf64a72 Drop claude.md. 2026-04-06 20:27:17 -04:00
Storm Dragon 404e87db25 Fixed a bug in PKGBUILD. 2026-01-08 16:21:22 -05:00
Storm Dragon e32db0d2c9 Fixed missing headers in po/ab.po. Updated the CLAUDE.md file. Now it's time to release. 2026-01-02 19:07:50 -05:00
Storm Dragon 87786e9c72 Try to make Cthulhu python 3.9 compatible. Fixed keybinding and notifications bugs. 2025-12-29 05:17:33 -05:00
Storm Dragon 200faa9e36 Speech history plugin added. Code and documentation audit completed. Preparing for tagged release. 2025-12-22 19:43:41 -05:00
Storm Dragon 10d94792ed Ported over Orca d-bus remote improvements. 2025-09-16 22:44:29 -04:00
Storm DragonandClaude 270def0a59 Implement complete AI Assistant plugin with Claude Code integration
This commit adds a comprehensive AI Assistant plugin that provides AI-powered
accessibility features for the Cthulhu screen reader.

Major Features:
- Screen analysis using screenshots combined with AT-SPI accessibility data
- Natural language questions about UI elements and screen content
- Safe action assistance with user confirmation (click, type, copy)
- Multi-provider AI support (Claude, Claude Code CLI, OpenAI, Gemini, Ollama)
- Complete preferences GUI integration with provider selection and settings

Technical Implementation:
- Plugin-based architecture using pluggy framework
- Three keybindings: Cthulhu+Ctrl+Shift+A/Q/D for describe/question/action
- PyAutoGUI integration for universal input synthesis (Wayland/X11 compatible)
- Robust error handling and user safety confirmations
- Claude Code CLI integration (no API key required)

Core Files Added/Modified:
- src/cthulhu/plugins/AIAssistant/ - Complete plugin implementation
- src/cthulhu/settings.py - AI settings and Claude Code provider constants
- src/cthulhu/cthulhu-setup.ui - AI Assistant preferences tab
- src/cthulhu/cthulhu_gui_prefs.py - GUI handlers and settings management
- distro-packages/Arch-Linux/PKGBUILD - Updated dependencies
- CLAUDE.md - Comprehensive documentation

Testing Status:
- Terminal applications: 100% working
- Web forms (focus mode): 100% working
- Question and description features: 100% working
- Claude Code CLI integration: 100% working
- Settings persistence: 100% working

The AI Assistant is fully functional and ready for production use.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 13:45:34 -04:00
Storm Dragon a8672165d8 AI capabilities added. Working 90 percent with ollama, more providers and functionality coming soon. 2025-08-03 00:07:59 -04:00
Storm DragonandClaude 4d2561a293 Implement sleep mode functionality for Cthulhu
Add application-specific sleep mode that disables speech and events while preserving the ability to toggle back to normal operation.

Features:
- Keybinding: Cthulhu+Ctrl+Alt+Shift+Q (matches Orca)
- Per-application scope (only affects focused app)
- Suppresses all speech, braille, and event processing
- Preserves sleep mode toggle keybinding for exit
- Status messages on enter/exit

Implementation:
- New sleepmode script module in src/cthulhu/scripts/sleepmode/
- Toggle handler in default.py using script manager
- Proper autotools integration with correct installation paths
- Build system fixes for module discovery

Files modified:
- src/cthulhu/common_keyboardmap.py: Add sleep mode keybinding
- src/cthulhu/scripts/default.py: Add toggleSleepMode handler
- src/cthulhu/scripts/sleepmode/: Complete sleep mode implementation
- CLAUDE.md: Documentation for build system and sleep mode
- Fix sleepmode/Makefile.am installation path

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 14:03:10 -04:00