M4444 / TMatrix

Terminal based replica of the digital rain from The Matrix.
GNU General Public License v2.0
380 stars 14 forks source link

Make a screensaver? #33

Open ottoborden opened 1 year ago

ottoborden commented 1 year ago

Hi! I love this digital rain effect. Best one I've ever seen by far. I've been thinking about how it might be possible to turn this into a screensaver somehow?

Has the creator considered this? Anyone have any ideas how this might be accomplished?

M4444 commented 1 year ago

Hi, thanks for the kind words, I'm glad you like it :)

I've heard people talking about maybe using XScreenSaver for this, though I've never seen it done. It seems like an approachable problem, some ways that come to mind are somehow full-screening the terminal or switching tty's but I haven't given much though to it, to be honest.

rochr4 commented 9 months ago

for X and alacritty: alacritty --option "window.decorations=none" --option "window.startup_mode=Fullscreen" --title alactmat --command tmatrix & $(wmctrl -a alactmat) & xtrlock && $(wmctrl -c alactmat) another ex.: projectMSDL & $(wmctrl -b add,fullscreen -a 'projectM') & xtrlock && (killall projectMSDL) || killall -9 projectMSDL

As for a real TTY, no idea, maybe You could port some 'vlock' code, on arch it's part of kbd package.

(https://superuser.com/questions/152347/change-linux-console-screen-blanking-behavior)

rochr4 commented 9 months ago

After some thought this could be improved using 'xautolock' or 'xidlehook' with a notify and some more programatic bash scipt checking 'pidoff' also since xtrlock can emit succes signal with '-f' possibilities are endless.

xidlehook