mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Original matrix screensaver (zero dependency)
This commit is contained in:
parent
32e0623424
commit
484db7d6a0
BIN
.config/screensaver.mp4
Normal file
BIN
.config/screensaver.mp4
Normal file
Binary file not shown.
10
.local/bin/screensaver
Executable file
10
.local/bin/screensaver
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
[ "$INACTIVITY" ] || export INACTIVITY=900
|
||||
|
||||
# Duration ( in minutes )
|
||||
dur=$(( INACTIVITY / 60 ))
|
||||
|
||||
# Suspends after completion
|
||||
timeout "$dur"m ffplay -volume 0 -exitonkeydown -exitonmousedown -loop "$dur" -fs ~/.config/screensaver.mp4 >/dev/null 2>&1 || systemctl suspend
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user