Created
December 7, 2023 19:51
-
-
Save aaron-watts/83034647e120d58a20508840e19ec7a9 to your computer and use it in GitHub Desktop.
Cmatrix Screensaver for i3wm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### CMatrix TUI Screensaver for i3wm ### | |
### | |
### In i3 config, first disable power saving and screen blanking: | |
### exec --no-startup-id xset s off -dpms | |
### | |
### Ensure xautolock is installed on system, include the following | |
### in your i3wm config file: | |
### exec --no-startup-id xautolock -time 10 -locker ~/.cmatrix-lock | |
if [[ ! $(pgrep -f "cmatrix -ak") ]]; then | |
xfce4-terminal -e "cmatrix -ak" & | |
sleep 0.2 | |
i3-msg fullscreen | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment