Skip to content

defliez/matrix-screensaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Screensaver

This is a project built in C, featuring two variations of matrix-themed screensavers.

The programs leverage ncurses, a C library that allows for creating and rendering terminal windows, as well as the Ghostty terminal which has features to open a terminal window in fullscreen with a transparent background. This can also be done with the use of other terminals. To turn it into a screensaver, this project uses hyprland and hypridle, although it is possible to use other environments and idle daemons.

Previews

Infinite
matrix-infinite.mp4
"WAKE UP"
matrix.mp4

Setup

  1. Clone the repository.
git clone https://github.com/defliez/matrix-screensaver.git
  1. Compile the programs with the following commands:
gcc infinite-matrix.c -o matrix -lncurses
gcc infinite-matrix.c -o infinite-matrix -lncurses
  1. Edit your hypridle config (or any other idle daemon) to run a command to launch the screensaver:
listener {
    timeout = 300
    on-timeout = pgrep -a ghostty | grep -q "matrix-screensaver" || ghostty --background-opacity=0.5 --title=matrix-screensaver -e /path/to/compiled-executable
}
  1. Add the following line to your hyprland.conf file:
windowrulev2 = fullscreen,title:^(matrix-screensaver)$
  1. Restart hypridle:
killall hypridle && hypridle & disown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages