mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
ddf0d1e8e0e70e5fbfa62f53cf8a8bbc5f8adcab
Turns out there are control codes for tracking mouse actions in xterm-compatible terminal emulators (mind blown). This patch adds mouse action awareness to our beloved screensaver setup: - on setup it sends the respective control codes for movement and click detection - in the main loop it opens up the input reader to read raw bytes and, thus, enable to detect even so much as a mouse's squeak Personally, I love swiping my trackpad to exit screensaver. But the explicit pressing-a-key to exit is nice, also. And I don't know if many people have jitter issues with their mouses or trackpads. Reckon, if they had they wouldn't get to see the glory that TTE is anyway, ever :) This is tested and working in Ghostty. Sorry for the low-effort testing.
Omarchy
Omarchy is a beautiful, modern & opinionated Linux distribution by DHH.
Read more at omarchy.org.
License
Omarchy is released under the MIT License.
Languages
Shell
91.1%
Smarty
3.4%
CSS
3.4%
Lua
1.9%
JavaScript
0.2%