Skip to content

This script just displays flying text, or current time. Direction can be changed via WASD.

Notifications You must be signed in to change notification settings

kolbasky/bash-screensaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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)

About

This script just displays flying text, or current time. Direction can be changed via WASD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages