Skip to content

Commit df74898

Browse files
authored
Merge pull request #18 from attogram/feature/enhancements
Fixup: Remove issues directory
2 parents d63ba71 + 8aa2fe4 commit df74898

File tree

24 files changed

+358
-86
lines changed

24 files changed

+358
-86
lines changed

README.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ cd bash-screensavers
2222
./screensaver.sh
2323
```
2424
```
25-
Bash Screensavers v0.0.12 (Mystical Mirage)
26-
27-
1 . alpha - colorful pixels, one at a time
28-
2 . bouncing - classic bouncing 'O's
29-
3 . cutesaver - infinite loop of cuteness
30-
4 . fireworks - Ooh! Aah! Pretty lights!
31-
5 . matrix - classic digital rain
32-
6 . pipes - classic maze of pipes
25+
Bash Screensavers v0.0.13 (Mystic Matrix)
26+
27+
1 . alpha - random colorful pixels
28+
2 . bouncing - bouncing 'O' madness
29+
3 . cutesaver - an infinite loop of cuteness
30+
4 . fireworks - elegant fireworks display
31+
5 . matrix - the matrix has you
32+
6 . pipes - an endless pipe maze
3333
7 . rain - soothing, gentle rain
3434
8 . speaky - dramatic talking screensaver
35-
9 . stars - twinkling starfield
35+
9 . stars - twinkling starfield simulation
3636
10. tunnel - fly into the digital tunnel
3737
3838
(Press ^C to exit)
@@ -107,7 +107,7 @@ That's it! The main `screensaver.sh` script will automatically detect your new c
107107

108108
```
109109
.
110-
├─ screensaver.sh # Where all the visual pleasuring starts
110+
├─ screensaver.sh # Where the ASCII magic begins
111111
├─ LICENSE # MIT Licensed, because all the cool kids are doing it
112112
├─ README.md # This file, isn't it pretty?
113113
├─ gallery # Welcome to the Gallery of Terminal Visualizations
@@ -144,4 +144,17 @@ That's it! The main `screensaver.sh` script will automatically detect your new c
144144

145145
---
146146

147+
## Development Tools
148+
149+
### `tools/smile-for-the-camera.sh`
150+
151+
This script is used to generate animated GIF previews for each screensaver. It uses `asciinema` to record a `.cast` file and `agg` to convert it to a `.gif`. The output files are saved in the `gallery/<screensaver_name>/` directory.
152+
153+
**Usage:**
154+
```bash
155+
./tools/smile-for-the-camera.sh
156+
```
157+
158+
---
159+
147160
*Made with ❤️ and a lot of bash.*

gallery/alpha/config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name="alpha"
2-
tagline="colorful pixels, one at a time"
3-
description="A simple screensaver that prints random colored blocks at random locations on the screen."
2+
tagline="random colorful pixels"
3+
description="A minimalist screensaver that slowly fills the screen with a random pattern of colorful pixels. Each character block is placed one at a time, creating a mesmerizing and ever-changing mosaic. It's simple, lightweight, and surprisingly hypnotic."
44
authors="attogram"
55
license="MIT"
66
settings=""

gallery/bouncing/bouncing.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ animate() {
2727
clear
2828
tput civis # Hide cursor
2929

30-
local width=$(tput cols)
31-
local height=$(tput lines)
30+
local width
31+
width=$(tput cols)
32+
local height
33+
height=$(tput lines)
3234

3335
# Initialize objects
3436
local -a pos_x

gallery/bouncing/config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name="bouncing"
2-
tagline="classic bouncing 'O's"
3-
description="A classic screensaver effect with multiple objects bouncing off the edges of the terminal."
2+
tagline="bouncing 'O' madness"
3+
description="A tribute to the DVD screensavers of yesteryear. Watch as multiple 'O's bounce around the terminal, changing color and direction as they hit the edges. Will they ever hit the corner? Only time will tell."
44
authors="attogram"
55
license="MIT"
66
settings=""

gallery/cutesaver/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name="cutesaver"
22
tagline="infinite loop of cuteness"
3-
description="An ASCII screensaver of cuteness. A huge shoutout to some of the most wonderful cuties I know: Mispy, Catherine, Ninji, Fiora, __builtin_trap, Gewt, Hachidorii, Kwanre, Talen, Whitequark, Louise, Emma, Chris, Katnarine, Dirt, Nimby, Hoodie, Simon... and more!"
3+
description="Prepare for an onslaught of adorable ASCII art. This screensaver cycles through a collection of cute and charming images, bringing a little bit of joy and whimsy to your terminal. A huge shoutout to the original artists!"
44
authors="kestraI, attogram"
55
license="MIT"
66
settings=""

gallery/cutesaver/cutesaver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ _cleanup_and_exit() { # handler for SIGINT (Ctrl‑C)
2020
}
2121
trap _cleanup_and_exit SIGINT # Catch Ctrl‑C
2222

23-
cd "$( dirname "${BASH_SOURCE[0]}" )"
23+
cd "$( dirname "${BASH_SOURCE[0]}" )" || exit
2424

2525
clear
2626
file1="./art/title.art"
@@ -68,7 +68,7 @@ animate() {
6868

6969
while true; do
7070
# Shuffle the list of files for random order
71-
local shuffled_files=($(shuf -e "${art_files[@]}"))
71+
mapfile -t shuffled_files < <(shuf -e "${art_files[@]}")
7272
for art_file in "${shuffled_files[@]}"; do
7373
clear
7474
if [ -f "$art_file" ]; then

gallery/fireworks/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name="fireworks"
22
tagline="Ooh! Aah! Pretty lights!"
3-
description="A simple but elegant fireworks display for your terminal."
3+
description="Light up your terminal with a dazzling fireworks show. Watch as colorful rockets launch and explode into beautiful, shimmering patterns. A celebration for your command line."
44
authors="attogram"
55
license="MIT"
66
settings=""

gallery/fireworks/fireworks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ animate() {
2929
clear
3030
tput civis # Hide cursor
3131

32-
local width=$(tput cols)
33-
local height=$(tput lines)
32+
local width
33+
width=$(tput cols)
34+
local height
35+
height=$(tput lines)
3436

3537
while true; do
3638
# --- Rocket Launch ---

gallery/matrix/config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name="matrix"
2-
tagline="classic digital rain"
3-
description="A matrix-style screensaver with falling green characters. This version is optimized for speed."
2+
tagline="the matrix has you"
3+
description="Enter the Matrix with this digital rain effect. Green characters cascade down your screen, creating the iconic, mesmerizing look from the movies. This version is optimized for performance, so you can really feel like you're in the simulation."
44
authors="attogram"
55
license="MIT"
66
settings=""

gallery/matrix/matrix.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ animate() {
4949
tput civis # Hide cursor
5050

5151
# Get terminal dimensions
52-
local width=$(tput cols)
53-
local height=$(tput lines)
52+
local width
53+
width=$(tput cols)
54+
local height
55+
height=$(tput lines)
5456

5557
# Initialize column arrays
5658
local -a heads # y-position of the head of the stream

0 commit comments

Comments
 (0)