https://github.com/cxreiff/ttysvr Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} cxreiff / ttysvr Public * Notifications You must be signed in to change notification settings * Fork 2 * Star 216 Screen saver for your terminal. License Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT 216 stars 2 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 3 * Pull requests 2 * Actions * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Security * Insights cxreiff/ttysvr This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 31 Commits .github/workflows .github/ workflows assets assets src src .gitignore .gitignore CHANGELOG.md CHANGELOG.md Cargo.lock Cargo.lock Cargo.toml Cargo.toml LICENSE-APACHE LICENSE-APACHE LICENSE-MIT LICENSE-MIT README.md README.md release-plz.toml release-plz.toml View all files Repository files navigation * README * Apache-2.0 license * MIT license ttysvr Screensavers for your terminal. Start immediately or after a period of inactivity within a shell. [68747470733a2f2f617] [68747470733a2f2f617] [68747470733a2f2f617] Uses bevy_ratatui_render, my bevy plugin that allows you to render a bevy application to the terminal using ratatui and ratatui-image. Triggering the screensaver immediately works in any shell, triggering after a set period of inactivity is currently Zsh only. installation # cargo cargo install --locked ttysvr # homebrew brew install cxreiff/tap/ttysvr usage Starts the screensaver immediately. If no variant is specified, one is randomly selected. ttysvr [VARIANT] Some variants have subvariants. ttysvr [VARIANT] [SUBVARIANT] Sets up the screensaver to activate after DELAY seconds of inactivity in your current shell session. eval `ttysvr [VARIANT] --init [DELAY]` Cancels the screensaver in your current shell session. eval `ttysvr --cancel` Important Note that the --init and --cancel options require being wrapped in eval and backticks. This is because activating the screensaver after a set period of inactivity relies on setting the TMOUT environment variable in your current shell, instead of the child shell created by the ttysvr process. Issues/PRs are greatly appreciated if somebody is aware of a better way of doing this! variants variant subvariants? description bubbles Colorful bubbles bounce around the screen. logo dvd, tty DVD player style bouncing logo. maze brick, hedge 3D randomly generated maze. compatibility zsh only The screensaver delay works based on setting a session timeout and catching the ALRM signal in a way only compatible with ZSH. If you know a way to achieve something similar in another shell, please open an issue! terminal This requires that your terminal: 1. Supports 24bit color. 2. Has reasonably efficient rendering. This includes a decent variety of terminals, but I have personally confirmed good results in the following: * Alacritty (macOS, linux) * Kitty (macOS) * WezTerm (macOS) * iTerm2 (macOS) About Screen saver for your terminal. Resources Readme License Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT Activity Stars 216 stars Watchers 5 watching Forks 2 forks Report repository Releases 4 0.3.0 - 2024-10-03 Latest Oct 3, 2024 + 3 releases Contributors 2 * @cxreiff cxreiff Cooper Jax Reiff * @github-actions[bot] github-actions[bot] Languages * Rust 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.