Coder Social home page Coder Social logo

jercos / terminal-screensaver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiongchiamiov/terminal-screensaver

0.0 2.0 0.0 101 KB

Bringing the coolness of screensavers to your terminal.

License: Do What The F*ck You Want To Public License

Perl 32.63% Shell 64.98% Racket 2.39%

terminal-screensaver's Introduction

Screensavers are cool. Why can't you have them in your terminals?

There is a video demo available on YouTube.

Install

  1. Copy terminal-screensaver.conf.example to ~/.terminal-screensaver.conf and modify as you wish.

  2. In your ~/.bashrc or ~/.zshrc, add a sourcing of the terminal-screensaver-include.sh file:

    screensaver_source=$HOME/Documents/terminal-screensaver/terminal-screensaver-include.sh
    [[ -s "$screensaver_source" ]] && source "$screensaver_source"
    
  3. Put terminal-screensaver and terminal-screensaver-reset somewhere in your PATH.

  4. Read the comments in terminal-screensaverd and run it.

Caveats

This is a toy, designed for fun more than serious use. The idea for it came while watching my coworker pretend to hack on our codebase while running cmatrix.

"Activity" is defined as commands run; this means that a screensaver might trigger while you're in the middle of typing a command. Thankfully, if you're in vim for long enough for it to trigger, the screensaver won't launch until you quit.

Since exiting the screensaver doesn't reset the counter, the polling mechanism will frequently trigger the screensaver again before you have a chance to do much of anything. This should hopefully be fixed soon, but if you have any clever ideas about this, please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.