LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cool Christmas application (https://www.linuxquestions.org/questions/linux-software-2/cool-christmas-application-4175705182/)

Crippled 12-20-2021 06:37 AM

Cool Christmas application
 
I just came across this cool Christmas application here https://youtu.be/E8hC98nRTWw

enigma9o7 12-20-2021 08:48 AM

Code:

$ xsnow
Xsnow-3.1.1
December 14th 2001 by Rick Jansen
February 2020 by Willem Vermin
Your screen supports alpha channel, good.
Detected desktop session: lightdm-xsession
Scenario: Use Gtk for drawing snow in transparent window, birds can fly.
Snowing in window: 0x1a00003 - "Xsnow-A" - depth: 32 - geom: 3 3 1357x765 - alpha: yes - exposures: 0
Birds in window: 0x1a00003 - "Xsnow-A"
*** buffer overflow detected ***: terminated
Aborted


teckk 12-20-2021 09:12 AM

Snow you say...
Code:

#! /usr/bin/bash

declare -A sf
declare -A lf

clear

l=$(($(tput lines) + 1))
c=$(($(tput cols) + 1))

move() {
    i="$1"
    if [ "${sf[$i]}" = "" ] || [ "${sf[$i]}" = "$l" ]; then
        sf[$i]=0
    elif [ "${lf[$i]}" != "" ]; then
        printf "\033[%s;%sH \033[0;0H" "${lf[$i]}" "$i"
    fi
    printf "\033[%s;%sH*\033[0;0H" "${sf[$i]}" "$i"

    lf[$i]="${sf[$i]}"
    sf[$i]="$((${sf[$i]} + 1))"
}

while :; do
    i=$(($RANDOM % $c))
    move "$i"
    for x in "${!lf[@]}"; do
        move "$x"
    done
    sleep 0.07
done


rnturn 12-20-2021 10:23 AM

Quote:

Originally Posted by Crippled (Post 6311085)
I just came across this cool Christmas application here https://youtu.be/E8hC98nRTWw

I remember this from (more than a) few years ago. It's no longer in the OpenSUSE's repository, though.

smallpond 12-20-2021 12:10 PM

I found source here: https://sourceforge.net/projects/xsnow/

It looks like you need to install the whole X11 and gtk3 development kits which I didn't feel like doing, so not sure if it will work on a Wayland system.

Crippled 12-20-2021 12:23 PM

Quote:

Originally Posted by rnturn (Post 6311133)
I remember this from (more than a) few years ago. It's no longer in the OpenSUSE's repository, though.

It's in the MX Linux repository.

enigma9o7 12-20-2021 05:13 PM

I've tried on couple computers without success. That buffer overflow was the debian 11 repo version. On ubuntu 18 repo version (1.42), no errors, just nothing seems to happen, and it doesn't have nearly as many options.

frankbell 12-20-2021 09:02 PM

I found xsnow in the Ubuntu MATE v. 20.04 LTS repos. It is working quite nicely.

Later: I experienced a couple of screen freezes when I tried to open new programs, which took me aback, as I've used xsnow on Slackware without any issues.

I'll try again and see what happens.

pan64 12-21-2021 03:22 AM

worked perfectly on my debian (downloaded and built from latest source).
(if I remember well something similar was already made for windows 3.1).

frankbell 12-21-2021 08:11 PM

It's running find on my Debian v. 11 laptop, even went through a couple of suspends with no issues; it was in the Debian repos. Both the Debian machine and the Ubuntu MATE machine have 16 GB RAM. I'll try it again on the MATE machine tomorrow (right now I'm watching an episode of Midsomer Murders on it).

evo2 12-21-2021 08:50 PM

I could be mistaken, but I'm pretty sure I remember running this on a Dec Alpha back in 1998.
See https://www.ratrabbit.nl/ratrabbit/xsnow/index.html

Evo2.

cwizardone 12-21-2021 09:08 PM

Works well in Slackware64-current. From the Slackware change log,
Quote:

+--------------------------+
Mon Dec 20 19:41:32 UTC 2021
......
xap/xsnow-3.4.2-x86_64-1.txz: Upgraded.
http://slackware.oregonstate.edu/sla.../ChangeLog.txt

frankbell 12-22-2021 09:09 PM

Quote:

Works well in Slackware64-current. From the Slackware change log,
If I remember correctly, it comes with Slackware at least through v. 14.2, along with Xeyes, which I have always found particularly irritating and useless, but that's just me.

I've been running Xsnow on my Ubuntu MATE machine all day. I have visited some websites, watched some videos, posted to my website, and right now I'm watching an episode of Midsomer Murders (I loves me some Midsomer Murders) and have not (yet) suffered another freeze. I did reboot in between because of a kernel update. GKrellM does not show excessive CPU usage, even though I'm streaming media as I type this.

(With my luck, it'll probably freeze as soon as I click "Post.":))

cwizardone 12-22-2021 09:40 PM

IIRC, xsnow was once part of xgames. From looking at the change log it would appear xsnow was removed from xgames (in -current) and then added back, as its own package, in December 2020.
I've never had a freeze with xsnow..... There is a pun in there somewhere.... :)

Merry Christmas to one and all!

frankbell 12-22-2021 09:57 PM

Well, I'm getting closer. It froze when I started VLC to play a video from my HDD. I can now narrow the list of suspects!


All times are GMT -5. The time now is 01:36 AM.