Live data from Hacker News

Show HN: Bash Screensavers

github.com

41–50 of 82 posts

Re: Show HN: Bash Screensavers

#41
post #30
post #2

Gallery of current screensavers: https://github.com/attogram/bash-screensavers/blob/main/gall...

they're generally pretty but they should really hide the cursor, it looks offputting in basically all cases

Agreed! Known bug that will get squashed...

Re: Show HN: Bash Screensavers

#43
post #9

Doesn't work for me on MacOS: I get "mapfile: command not found"

After installing bash via MacPorts, it works for me. All except #3 cutesaver, which gives an infinite loop of: cutesaver.sh: line 55: shuf: command not found

shuf has been a part of coreutils since 2006.

Re: Show HN: Bash Screensavers

#45
You can also experiment and make your own[1] using TerminalTextEffects[2]. I added this to my ~/.zshrc

    > /home/keeb/code/projects/login/motd.sh
Which has..

    #!/usr/bin/env zsh

    values=("bubbles" "slide" "beams" "rain" "pour" "synthgrid" "unstable" "poop")
    len=${#values[@]}
    index=$(( (RANDOM % (len - 1)) + 1 ))
    selected=${values[$index]}

    cat /home/keeb/code/projects/login/motd | tte $selected
Change motd to have an ascii art of your choice. Run it in a loop if you want :)

1: https://keeb.dev/static/login.mp4 2: https://github.com/ChrisBuilds/terminaltexteffects

Re: Show HN: Bash Screensavers

#46
post #40

You can put them onto your Plasma wallpaper and/or lockscreen background with plasma-wallpaper-application: https://invent.kde.org/dos/plasma-wallpaper-application (thought I'd share that since its raison d'être was to put Asciiquarium there :))

Ah, sweet! Do you know if this supports any DE (or no DE)? Or is it strictly for KDE Plasma?

Plasma wallpaper plugins are, well, for Plasma.

When it comes to wallpapers, you could do a similar trick on X11 DEs by putting it onto the root window (with a tool like xwinwrap) and on Wayland DEs that support layer-shell (with a tool like windowtolayer). I'm not aware of screen lockers that do something like that, but you could always write your own one.

Re: Show HN: Bash Screensavers

#48
I like how all the tests seem to be contained within a "jury" folder which judges the merit of your code, made me smile - It's always nice for open-source/FOSS projects to retain a bit of whimsy and joy.

Re: Show HN: Bash Screensavers

#49

I've used Emacs for years but just recently learned about zone.el. I wonder if this is based on it too. I see some of the same screensavers here.

Wow! The copyright of zone.el goes back to 2000. But this is the first time I hear about it! How did you find this gem?

I know the trendy thing is to hide the menu-bar, but it's great for discoverability. Tools→Games→Zone Out

Re: Show HN: Bash Screensavers

#50
post #40

Earlier quoted context omitted.

Ah, sweet! Do you know if this supports any DE (or no DE)? Or is it strictly for KDE Plasma?

Plasma wallpaper plugins are, well, for Plasma. When it comes to wallpapers, you could do a similar trick on X11 DEs by putting it onto the root window (with a tool like xwinwrap) and on Wayland DEs that support layer-shell (with a tool like windowtolayer). I'm not aware of screen lockers that do something like that, but you could always write your own one.

Right, but I hoped it would work as a standalone Qt app.

Yeah, I've used xwinwrap before, but am lost on Wayland. I'll look into windowtolayer, thanks. I'd rather not have to write this myself...

Post reply on HN