1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567 |
# Matrix Screen Saver Collection
[](https://www.python.org/)
[](LICENSE)
[](https://www.linux.org/)
[](https://docs.python.org/3/library/curses.html)
[](https://github.com/yourusername/matrix-ss)
[](README.md#versions)
[](README.md#advanced-effects)
[](README.md#interactive-features)
A comprehensive collection of terminal-based Matrix-style screen savers featuring the iconic "digital rain" effect with advanced visual enhancements, interactive features, and multiple themed variants for every occasion.
## Features
[](https://en.wikipedia.org/wiki/The_Matrix)
[](https://en.wikipedia.org/wiki/Frame_rate)
[](README.md#controls)
[](README.md#technical-details)
[](README.md#versions)
[](README.md#advanced-effects)
[](README.md#interactive-features)
[](README.md#enhanced-characters)
### Core Features
- ๐ Authentic Matrix-style digital rain effect
- ๐จ 17 unique variants with different themes and effects
- โก Smooth animation (~20 FPS)
- โจ๏ธ Simple controls (press 'q' to quit)
- ๐ง Linux/Unix/macOS compatible
- ๐ฏ Lightweight and efficient
### Advanced Effects
- ๐ฅ Fire gradient effects (blue โ red โ white)
- ๐ Wave motion patterns with color transitions
- โก Glitch effects with system error messages
- ๐ญ Trail fade effects for realistic motion blur
- ๐ผ๏ธ Progressive image revelation through Matrix rain
- ๐ต Audio-reactive visual responses (simulated)
### Enhanced Characters
- ๐ฏ๐ต Authentic Japanese Katakana characters
- ๐ค Mixed ASCII and Unicode character sets
- ๐ฒ Dynamic character selection algorithms
- โก Variable speed columns for realistic flow
## Requirements
[](https://www.python.org/downloads/)
[](https://www.linux.org/)
[](https://docs.python.org/3/library/curses.html)
[](https://pypi.org/project/psutil/)
[](https://pypi.org/project/PyAudio/)
### Core Requirements
- Python 3.x
- Linux/Unix/macOS terminal
- `curses` library (usually included with Python)
### Optional Dependencies
- `psutil` library (for system monitoring in `matrix_system.py`)
- `pyaudio` or `sounddevice` (for real audio input in `matrix_music.py`)
### Unicode Support
- Terminal with Unicode/UTF-8 support (for Katakana characters in `matrix_enhanced.py`)
## Installation
### Dependencies Installation
```bash
# Install all dependencies
pip install -r requirements.txt
# Or install individually
pip install psutil # For system monitoring (matrix_system.py)
# Optional: For real audio input (matrix_music.py)
# pip install pyaudio
# pip install sounddevice
```
### Method 1: Direct Download
```bash
# Clone or download the repository
git clone <repository-url>
cd matrix-ss
# Make all scripts executable
chmod +x *.py
```
### Method 2: Manual Setup
```bash
# Download all scripts to your desired location
# (All 10 matrix variants)
# Make executable
chmod +x matrix*.py
```
## Usage
### Basic Usage
```bash
# Classic Collection
python3 matrix.py # Original green Matrix
python3 matrix_red.py # Dramatic green + red
python3 matrix_rainbow.py # Festive rainbow colors
python3 matrix_system.py # System monitoring
# Enhanced Collection
python3 matrix_enhanced.py # Katakana + fade effects
python3 matrix_fire.py # Fire gradient effects
python3 matrix_glitch.py # Glitch + error messages
python3 matrix_wave.py # Wave motion patterns
python3 matrix_image.py # Progressive image reveal
python3 matrix_music.py # Audio-reactive (simulated)
```
### Quick Start
```bash
# Make all executable and run your favorite
chmod +x *.py
./matrix_enhanced.py # Recommended for best experience
```
### Controls
- **Press 'q'** to quit the screen saver
- **Ctrl+C** to force exit
## Versions
### Classic Collection
### ๐ข Classic Matrix (`matrix.py`)
The original Matrix screen saver with authentic green digital rain effect.
```bash
python3 matrix.py
```
**Features:**
- ๐ Authentic Matrix movie experience
- ๐ข Green characters only
- ๐ฌ Nostalgic classic look
### ๐ด Dramatic Matrix (`matrix_red.py`)
Enhanced version with red characters mixed with green for a more dramatic effect.
```bash
python3 matrix_red.py
```
**Features:**
- ๐ข 80% green characters
- ๐ด 20% red characters
- โก Dramatic visual impact
- ๐ญ Perfect for intense moments
### ๐ Rainbow Matrix (`matrix_rainbow.py`)
Vibrant rainbow version with all colors of the spectrum for festive occasions.
```bash
python3 matrix_rainbow.py
```
**Features:**
- ๐ 7 rainbow colors (Red, Yellow, Green, Cyan, Blue, Magenta, White)
- ๐ Perfect for celebrations and events
- โจ Vibrant and eye-catching
- ๐ช Great for demonstrations
### ๐ฅ๏ธ System Monitor Matrix (`matrix_system.py`)
Advanced version that displays real-time system information in the center while Matrix rain falls around it.
```bash
python3 matrix_system.py
```
**Features:**
- ๐ฅ๏ธ Real-time system monitoring (CPU, Memory, Disk, IP, Time, Date, User, Load)
- ๐ด System info displayed in red at center
- ๐ข Matrix rain falls around the information panel
- โฐ Updates every second
- ๐ฏ Perfect for system administrators and monitoring
---
### Enhanced Collection
### โญ Enhanced Matrix (`matrix_enhanced.py`) - **RECOMMENDED**
[](matrix_enhanced.py)
[](matrix_enhanced.py)
[](matrix_enhanced.py)
The most advanced version with authentic Japanese characters and realistic fade effects.
```bash
python3 matrix_enhanced.py
```
**Features:**
- ๐ฏ๐ต Authentic Katakana characters (70%) + ASCII (30%)
- ๐ญ Realistic trail fade effects
- โก Variable speed columns
- ๐ Most authentic Matrix experience
- ๐ซ Character aging and disappearing effects
### ๐ฅ Fire Matrix (`matrix_fire.py`)
[](matrix_fire.py)
Matrix rain with dynamic fire gradient effects that change temperature over time.
```bash
python3 matrix_fire.py
```
**Features:**
- ๐ฅ Dynamic fire gradient (Blue โ Cyan โ Green โ Yellow โ Red โ Magenta โ White)
- ๐ก๏ธ Heat levels that change over time
- โ๏ธ Cool and hot zones
- ๐จ 7-stage color temperature system
### โก Glitch Matrix (`matrix_glitch.py`)
[](matrix_glitch.py)
Matrix with random glitch effects and system error messages for a cyberpunk feel.
```bash
python3 matrix_glitch.py
```
**Features:**
- โก Random glitch effects every 5-15 seconds
- ๐จ System error messages ("ERROR: SYSTEM BREACH DETECTED")
- ๐ญ Corrupted character blocks (โโโโ)
- ๐ฅ Flashing and color corruption effects
- ๐ด Red alert colors during glitches
### ๐ Wave Matrix (`matrix_wave.py`)
[](matrix_wave.py)
Matrix rain influenced by sine wave patterns with dynamic color transitions.
```bash
python3 matrix_wave.py
```
**Features:**
- ๐ Sine wave motion patterns
- ๐จ Color zones based on wave proximity (White โ Cyan โ Blue โ Green)
- โก Variable speed influenced by wave position
- ใฐ๏ธ Visible wave line indicator
- ๐ Fluid, organic movement patterns
### ๐ผ๏ธ Image Reveal Matrix (`matrix_image.py`)
[](matrix_image.py)
Matrix rain that gradually reveals hidden ASCII art with progress tracking.
```bash
python3 matrix_image.py
```
**Features:**
- ๐ผ๏ธ Progressive ASCII art revelation
- ๐ Real-time decoding progress bar
- ๐จ Color-coded revelation stages (Yellow โ White โ Red)
- ๐ฌ "WAKE UP NEO" hidden message
- ๐ฏ Interactive discovery experience
### ๐ต Music Matrix (`matrix_music.py`)
[](matrix_music.py)
[](matrix_music.py)
[](matrix_music.py)
Audio-reactive Matrix that responds to real microphone input or simulated audio with dynamic effects.
```bash
# Basic usage (simulated audio)
python3 matrix_music.py
# For real audio, install dependencies first:
pip install sounddevice numpy
# OR
pip install pyaudio numpy
# Then run with real audio input
python3 matrix_music.py
```
**Features:**
- ๐ค **Real microphone input** (when libraries installed)
- ๐ญ **Automatic fallback** to realistic simulation
- ๐ต Audio level visualization with progress bar
- ๐จ Color intensity based on sound (Green โ Yellow โ Red โ Magenta โ White โ Cyan)
- ๐ Intelligent beat detection with special effects
- โก Speed changes based on audio intensity
- ๐ Real-time audio level display
- ๐ถ "BEAT!" indicator for rhythm detection
- ๐ง **Auto-detection** of available audio libraries (sounddevice/pyaudio)
- ๐ฌ **Status display** showing audio mode for 3 seconds
**Audio Libraries Supported:**
- `sounddevice` + `numpy` (recommended - easier installation)
- `pyaudio` + `numpy` (alternative - more control)
- Automatic simulation if no libraries available
---
### Themed Collection
### ๐ Neon Matrix (`matrix_neon.py`)
[](matrix_neon.py)
[](matrix_neon.py)
Matrix with neon glow effects and pulsing brightness for a cyberpunk aesthetic.
```bash
python3 matrix_neon.py
```
**Features:**
- ๐ Neon glow effects with variable intensity
- ๐ Pulsing brightness based on sine waves
- โก Flash effects and border illumination
- ๐จ Multi-intensity color gradients (Dark โ Bright โ White)
- ๐ซ Special neon colors (Magenta, Yellow highlights)
- ๐ Column-based glow intensity system
### ๐ข Binary Matrix (`matrix_binary.py`)
[](matrix_binary.py)
[](matrix_binary.py)
Pure binary Matrix using only 0s and 1s like in the original movie scenes.
```bash
python3 matrix_binary.py
```
**Features:**
- ๐ข **Only 0s and 1s** - true to the movie
- ๐ฌ Hidden binary messages ("Hello", "Matrix", "Neo", "Wake up")
- ๐ Real-time binary counter display
- ๐ฏ Data stream effects with horizontal flows
- ๐ Progressive message decoding with progress indicator
- ๐ป Authentic computer code aesthetic
### ๐ป Terminal Matrix (`matrix_terminal.py`)
[](matrix_terminal.py)
[](matrix_terminal.py)
Simulates a hacker terminal with realistic command execution in the center of Matrix rain.
```bash
python3 matrix_terminal.py
```
**Features:**
- ๐ป **Realistic hacker commands** (nmap, hydra, metasploit, etc.)
- โจ๏ธ Simulated typing with realistic speed
- ๐ System responses and command output
- ๐ Real-time timestamp display
- ๐ญ Terminal window with borders and title
- ๐ Cybersecurity tool simulation (ethical hacking commands)
### ๐งฌ DNA Matrix (`matrix_dna.py`)
[](matrix_dna.py)
[](matrix_dna.py)
Matrix displaying DNA sequences with complementary base pairs and genetic information.
```bash
python3 matrix_dna.py
```
**Features:**
- ๐งฌ **DNA bases only** (A, T, G, C) with authentic color coding
- ๐ **Double helix visualization** with complementary base pairs
- ๐งช Famous DNA sequences (telomeres, restriction sites)
- ๐ Real-time base counting and analysis
- ๐ Animated helix structure with connecting bonds
- ๐ฌ Scientific sequencer interface
### ๐ Network Matrix (`matrix_network.py`)
[](matrix_network.py)
[](matrix_network.py)
Matrix displaying real network information and simulated traffic data.
```bash
python3 matrix_network.py
```
**Features:**
- ๐ **Real network information** (hostname, IP, connections)
- ๐ Network traffic visualization and statistics
- ๐ Active port monitoring
- ๐ก Simulated packet flows (TCP, UDP, HTTP, SSH, etc.)
- ๐ Real-time traffic level indicator
- ๐ฅ๏ธ Network status monitoring
### ๐ฐ Crypto Matrix (`matrix_crypto.py`)
[](matrix_crypto.py)
[](matrix_crypto.py)
Matrix displaying cryptocurrency prices and market data with trading symbols.
```bash
python3 matrix_crypto.py
```
**Features:**
- ๐ฐ **Cryptocurrency price tracking** (BTC, ETH, ADA, DOT, LINK, XRP)
- ๐ **Price trends** with up/down indicators
- ๐น Market sentiment analysis (Bull/Bear/Sideways)
- ๐ฏ Crypto symbols rain (โฟ, ฮ, โณ, etc.)
- ๐ Real-time price changes and percentage tracking
- ๐ Market status indicators with emojis
### ๐ค๏ธ Weather Matrix (`matrix_weather.py`)
[](matrix_weather.py)
[](matrix_weather.py)
Matrix displaying weather information with climate-appropriate character effects.
```bash
python3 matrix_weather.py
```
**Features:**
- ๐ค๏ธ **Complete weather information** (temperature, humidity, pressure, wind)
- ๐ง๏ธ **Weather-specific characters** (โ๏ธ, โ๏ธ, ๐ง๏ธ, โ๏ธ, โ๏ธ, ๐ซ๏ธ)
- ๐จ **Dynamic colors** based on weather conditions
- โ ๏ธ **Weather alerts** (temperature, wind, UV, visibility warnings)
- ๐ก๏ธ **Comfort level indicators** (Cold, Cool, Comfortable, Warm, Hot)
- ๐ Detailed meteorological panel with real-time updates
---
### Complete Version Comparison
| Version | Colors | Special Effects | Best For | Difficulty |
|---------|--------|----------------|----------|------------|
| **Classic Collection** |
| `matrix.py` | Green only | Classic rain | Nostalgia, simplicity | โญ |
| `matrix_red.py` | Green + Red | Dramatic mix | Alerts, intensity | โญ |
| `matrix_rainbow.py` | 7 rainbow colors | Festive colors | Celebrations, demos | โญ |
| `matrix_system.py` | Green + Red + Yellow | System monitoring | Admin work | โญโญ |
| **Enhanced Collection** |
| `matrix_enhanced.py` | Green gradients | Katakana + fade | **Best overall** | โญโญโญ |
| `matrix_fire.py` | Fire gradient | Heat simulation | Visual impact | โญโญ |
| `matrix_glitch.py` | Multi + corruption | Error messages | Cyberpunk feel | โญโญ |
| `matrix_wave.py` | Wave-based | Sine motion | Fluid animation | โญโญโญ |
| `matrix_image.py` | Progressive reveal | ASCII art | Interactive fun | โญโญโญ |
| `matrix_music.py` | Audio-reactive | Beat detection | Parties, music | โญโญโญโญ |
| **Themed Collection** |
| `matrix_neon.py` | Neon gradients | Pulsing glow | Cyberpunk aesthetic | โญโญ |
| `matrix_binary.py` | Green + White | Binary only | Movie authenticity | โญ |
| `matrix_terminal.py` | Multi-colored | Hacker simulation | Educational/Demo | โญโญโญ |
| `matrix_dna.py` | Scientific colors | DNA sequences | Science/Education | โญโญโญ |
| `matrix_network.py` | Traffic-based | Network monitoring | IT/Networking | โญโญ |
| `matrix_crypto.py` | Market-based | Price tracking | Finance/Trading | โญโญ |
| `matrix_weather.py` | Weather-based | Climate data | Weather monitoring | โญโญ |
## How It Works
### Basic Algorithm
The screen saver creates a full-screen terminal animation where:
- Random characters fall from the top of the screen
- Each column has its own falling speed and position
- Characters are displayed with various color schemes
- The effect continues until you press 'q' to exit
### Advanced Features
- **Trail Effects**: Characters fade over time for realistic motion blur
- **Variable Speeds**: Different columns fall at different rates
- **Dynamic Colors**: Color changes based on effects (fire, wave, audio)
- **Interactive Elements**: Progress bars, system info, error messages
- **Unicode Support**: Authentic Japanese Katakana characters
## Technical Details
### Performance
- **Frame Rate**: ~20 FPS (50ms intervals)
- **Memory Usage**: Minimal (< 10MB for most variants)
- **CPU Usage**: Low impact on system performance
- **Terminal**: Uses `curses` library for efficient terminal manipulation
### Character Sets
- **ASCII**: Printable characters (33-126) for compatibility
- **Katakana**: Authentic Japanese characters (ใขใคใฆใจใช...)
- **Special**: Block characters for glitch effects (โโโโ)
- **Unicode**: Full UTF-8 support where available
### Color Systems
- **8-Color**: Standard terminal colors (Red, Green, Blue, etc.)
- **Gradients**: Smooth transitions between color states
- **Dynamic**: Real-time color changes based on effects
- **Compatibility**: Works with all curses-compatible terminals
## Troubleshooting
### Common Issues
1. **"curses module not found"**
```bash
# Install python3-curses (Ubuntu/Debian)
sudo apt-get install python3-curses
# Or for CentOS/RHEL
sudo yum install python3-curses
```
2. **Terminal not supported**
- Ensure you're using a terminal emulator that supports `curses`
- Try running in a different terminal (xterm, gnome-terminal, etc.)
3. **Permission denied**
```bash
chmod +x matrix.py
```
### Terminal Compatibility
[](https://invisible-island.net/xterm/)
[](https://help.gnome.org/users/gnome-terminal/)
[](https://konsole.kde.org/)
[](https://iterm2.com/)
[](https://alacritty.org/)
[](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd)
- โ
xterm
- โ
gnome-terminal
- โ
konsole
- โ
iTerm2 (macOS)
- โ
Alacritty
- โ Windows Command Prompt (not supported)
## Customization
You can modify any of the scripts to change:
- **Speed**: Adjust `time.sleep(0.05)` value
- **Colors**: Modify the color pairs in each script
- **Characters**: Change the range in `random.randint(33, 126)`
- **Frame rate**: Modify the `timeout(100)` value
- **Color distribution**: Adjust the probability ratios in `matrix_red.py`
- **Rainbow colors**: Add/remove colors from the `rainbow_colors` list in `matrix_rainbow.py`
## License
This project is open source. Feel free to modify and distribute as needed.
## Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest improvements
- Submit pull requests
## Acknowledgments
Inspired by the iconic Matrix digital rain effect from the 1999 film "The Matrix" directed by the Wachowskis.
---
**Enjoy your Matrix screen saver experience!** ๐ถ๏ธ |