Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 1.6 KB

README.md

File metadata and controls

40 lines (37 loc) · 1.6 KB

bash-screensaver

This script displays flying logos, text, or current datetime.
Text may be multiline (using \n), just test that it is displayed correctly with printf command. Ususally it takes to change \n -> \\n, ` -> \`, " -> \".
For % in text use %%
Direction can be changed via WASD/arrows, speed - via -/+ :-)
asd

Usage

Download and make executable

curl https://raw.githubusercontent.com/kolbasky/bash-screensaver/main/screensaver.sh > screensaver.sh
chmod +x screensaver.sh

Default is DVD logo
./screensaver.sh
Display batman logo
./screensaver.sh -l batman
Display custom text
./screensaver.sh -t Sample_text!
Display current datetime
./screensaver.sh date
Display contents of file (i.e. with ASCII art)
./screensaver.sh -f somefile
Get help
./screensaver.sh help
Exit
Ctrl+C

Parameters

  • --logo(-l) name of a premade logo: dvd, batman, ghost, metallica, tux, bigtux, demon, medusa
  • --file(-f) read file with text or ASCII art
  • --date(-d) disaply current datetime. conflicts with -t
  • --text(-t) text to display. conflicts with -d
  • --clear-mode(-c) how screen clears: 1 - line-by-line over old position, 2 - clear around object, 3 - clear command. Feel free to experiment, which looks better.
  • --speed(-s) speed of movement. FPS
  • --fps-counter(-F) show FPS counter

Controls

  • WASD to change direction
  • -/+ to change speed (fps)