Skip to content

A simple winter scene on an infinite loop in the command line or a gui.

License

Notifications You must be signed in to change notification settings

Mas9311/snowy-trees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Snow and Happy Trees

Snowy Tree icon

[License: GPL v3] [python: 3.x]

Prerequisites

pip3 install screeninfo pyautogui

  • If you encounter the Xlib error, pip3 install Xlib

Usage

I will be using python3 as a placeholder, but it is OS-dependent.

  • If Windows: execute python programs with python.exe.
  • Else: execute python programs with python3.
  1. Open a Terminal window and paste: git clone https://www.github.com/Mas9311/snowy-trees.git
  2. Extract or unzip the snowy-trees.zip file, then delete the zip.
  3. cd path/to/snowy-trees/
  4. Execute the program with: python3 run.py
    • This will print the welcome screen, because you have not added any extra arguments.
  5. Try the cli and the gui to find which looks more appealing.

Motivation

To minimize the light emitted from a monitor at night, I opened a maximized Terminal window.
A blank screen isn't tasteful, so I made ascii art out of the CHRISTMA EXEC worm from 1987.
From there, I developed the CLI, but wasn't quite satisfied at typing the options and rerunning.
I am pleased with the current state of the GUI, but as all projects go, it is never complete.

Create a Desktop launcher

Tree png can be found in .../snowy-trees/assets/icons/tree_icon.png

Linux users

GUI

  • Command: python3 run.py -f my_saved_file
  • Working Directory: /home/.../snowy-trees
  • Icon: Snowy Tree icon

CLI

Before creating a CLI Launcher, I recommend fine-tuning your configurations first via Terminal.

I have provided my configurations as a baseline template for you to get you started.
I use the Xubuntu distro, which comes with xfce4-terminal as the default Terminal application, so change the application to your Terminal emulator of choice.
Most Terminal emulators come with the optional arguments stated below, i.e. --geometry, --maximize, ...
The geometry offsets, +0+0 and -0+0, are the easiest way to assign it to the left and right monitors respectively.

Portrait monitors:

  • Command: xfce4-terminal --geometry=+0+0 --maximize --hide-menubar --hide-toolbar --hide-scrollbar -e 'python3 run.py -w 154 -s slow -d thin -t 4 -n'
  • Working Directory: /home/.../snowy-trees
  • Icon: Snowy Tree icon

Landscape monitors:

  • Command: xfce4-terminal --geometry=-0+0 --maximize --hide-menubar --hide-toolbar --hide-scrollbar -e "python3 run.py -c -w 274 -s average -d average -t 6 -y"
  • Working Directory: /home/.../snowy-trees
  • Icon: Snowy Tree icon

About

A simple winter scene on an infinite loop in the command line or a gui.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages