Skip to content

parkercoates/pipes.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipes.sh

Animated pipes terminal screensaver.
doc/pipes.png

Screenshot of pipes.sh, click to watch a screencast on YouTube.

  • Bash 4+ since version 1.0.0.

If you want to install, you can run:

$ make install

By default, it installs to /usr/local; for user home, you can run:

$ make PREFIX=$HOME/.local install

Or any PREFIX you prefer.

The Makefile also provides uninstall target.

If you are a Homebrew user, you can install via:

$ brew install pipes-sh
Options Descrptions (Defaults)
-p [1-] Number of pipes (1)
-t [#] Type of pipes, can be used more than once (0)
-c [0-7] Color of pipes, can be used more than once (1 2 3 4 5 6 7 0)
-f [20-100] Framerate (75)
-s [5-15] Probability of a straight fitting (13)
-r LIMIT` Reset after x characters, 0 if no limit (2000)
-R Random starting point
-B No bold effect
-C No color
-K Pipes keep their color and type when hitting the screen edge
-h Help message
-v Print version number
-t # Characters Screenshots
-t 0 ┃┏ ┓┛━┓ ┗┃┛┗ ┏━
doc/pipes.t0.png
-t 1 │╭ ╮╯─╮ ╰│╯╰ ╭─
doc/pipes.t1.png
-t 2 │┌ ┐┘─┐ └│┘└ ┌─
doc/pipes.t2.png
-t 3 ║╔ ╗╝═╗ ╚║╝╚ ╔═
doc/pipes.t3.png
-t 4 |+ ++-+ +|++ +-
doc/pipes.t4.png
-t 5 |/ \/-\ \|/\ /-
doc/pipes.t5.png
-t 6 .. .... .... ..
doc/pipes.t6.png
-t 7 .o oo.o o.oo o.
doc/pipes.t7.png
-t 8
-\ /\|/ /-\/ \|
(railway)
doc/pipes.t8.png
-t 9
╿┍ ┑┚╼┒ ┕╽┙┖ ┎╾
(knobby)
doc/pipes.t9.png

For example, -t cMAYFORCEBWITHYOU.

doc/pipes.tc.png
0 background 1 red 2 green 3 yellow
4 blue 5 magenta 6 cyan 7 foreground
doc/pipes.C.png

Press any key to exit the program, except the following Shift + Key:

Keys Actions
P / O Increase/decrease probability of straight pipes
F / D Increase/decrease frame rate
B Toggle bold effect
C Toggle no colors
K Toggle keeping pipe color and type when crossing edges

Feel free to fork and/or create pull request following the guideline. If you're contributing, remember your changes will be released under the MIT license.

pipes.sh is licensed under the MIT License.

About

Animated pipes terminal screensaver

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 91.6%
  • Makefile 8.4%