being a gh extension that runs animated terminal "screensavers"

Overview

gh-screensaver

being a gh extension that runs animated terminal "screensavers"

usage

  • gh screensaver run a random screensaver
  • gh screensaver -s pipes run a screensaver by name
  • gh screensaver -l list available screensavers

Extra configuration options can be passed after a --; for example:

gh screensaver -smarquee -- --message="hello world" --font="script"

savers

fireworks

watch a fireworks display.

--color full or off. Default full

starfield

fly through space.

--density Default 250. The number of stars to render. --speed Default 4. Higher is faster.

pipes

2d pipes draw across the screen.

--color full or off. Default full

pollock

paint splotches cover the screen.

author

nate smith [email protected]

Issues
  • gh screensaver crashes at terminal setup stage with

    gh screensaver crashes at terminal setup stage with "Error: no such font: iwrit: open fonts/iwrit.flf: file does not exist"

    1. Steps to reproduce: gh screensaver -smarquee -- --message-"hello world" --font-"iwrit"

    The terminal is messed up afterwards. The font file is clearly where it's supposed to be, so there might be an error in processing it somewhere in your included packages because its a right-to-left font perhaps? All other fonts process normally.

    opened by ewe2 1
  • Spacing issue in output

    Spacing issue in output

    Noticed that marquee is offset here:

    $ gh screensaver -l   
    fireworks
             marquee
    

    Similarly, when I pass in the incorrect flag i.e. -list instead of --list:

    $ gh screensaver -list
    Error: unknown shorthand flag: 'i' in -ist
                                              Usage:
                                                      screensaver [flags]
    
                                                                         Flags:
                                                                                 -h, --help           help for screensaver
                                                                                                                            -l, --list           List available screensavers and exit
       -R, --repo string    Repository to contribute to
                                                         -s, --saver string   Screensaver to play
    
                                                                                                 unknown shorthand flag: 'i' in -ist
    

    Possibly related to the error log output in #2.

    opened by leereilly 3
  • Broken argument handling in marquee screensaver

    Broken argument handling in marquee screensaver

    1 . Error encountered: When attempting to use the example marquee options --message and/or --font, they fail with the error "unknown flag" and the option attempted.

    1. Steps to reproduce: Run the example gh screensaver -smarquee --message="hello world" --font="script"
    opened by ewe2 3
  • gh-screensaver/bin/cmd.out: No such file or directory

    gh-screensaver/bin/cmd.out: No such file or directory

    Likely to be the same problem as this and this. Reporting for completeness across the 3 extensions I've been using - NB they previously work / worked on my Intel MBP, this is on an M1 Pro model.

    Running gh-screensaver results in the error:

    /Users/andypiper/.local/share/gh/extensions/gh-screensaver/gh-screensaver: line 54: /Users/andypiper/.local/share/gh/extensions/gh-screensaver/bin/cmd.out: No such file or directory

    $ ls /Users/andypiper/.local/share/gh/extensions/gh-screensaver
    LICENSE        cmd.out        go.mod         main.go        savers
    README.md      gh-screensaver go.sum         release.sh     util.go
    
    opened by andypiper 1
  • Replace shebang for portability sake

    Replace shebang for portability sake

    The shebang used in gh-screensaver and release.sh scripts (#!/bin/bash) has gretaer chance to fail (as it does on NixOS, for example).

    https://en.wikipedia.org/w/index.php?title=Shebang_(Unix)&oldid=878552871#Portability

    opened by maxdevjs 1
  • Add error-handling for non-existent screensavers

    Add error-handling for non-existent screensavers

    If I run $ gh screensaver -s afterdark passing in a screensaver that doesn't exist, it doesn't fail gracefully. Here's the original output. I'm not sure what's going on with the whitespace...

                                                                                    /Users/leereilly/.local/share/gh/extensions/gh-screensaver/main.go:31 +0x17d
                                                               main.rootCmd.func1(0xc00023ef00, 0xc00022c260, 0x0, 0x2, 0x0, 0x0)
                                    /Users/leereilly/.local/share/gh/extensions/gh-screensaver/main.go:121 +0x298
                github.com/spf13/cobra.(*Command).execute(0xc00023ef00, 0xc000202190, 0x2, 0x2, 0xc00023ef00, 0xc000202190)
                            /Users/leereilly/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x472
          github.com/spf13/cobra.(*Command).ExecuteC(0xc00023ef00, 0xc000000300, 0x200000003, 0xc000000300)
            /Users/leereilly/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x375
                                                                                           github.com/spf13/cobra.(*Command).Execute(...)
                                            /Users/leereilly/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
                   main.main()
                                    /Users/leereilly/.local/share/gh/extensions/gh-screensaver/main.go:151 +0x2b
    
    opened by leereilly 1
  • game of life

    game of life

    Add game of life screensaver with a few different seeds. --seed option (default random):

    • "glider": a glider fleet
    • "R": R-pentominos
    • "gun": glider gun shootout
    • "dragon": scary dragons
    • "pulsar": oscillators
    • "noise": random seed
    opened by meiji163 0
  • Add install instruction

    Add install instruction

    This PR add little information how to install this extension.

    I think it will help some people who came across the repo and does not understand what is github extension and how to install it.

    opened by lakuapik 0
  • gh screensaver crashes at terminal setup stage with

    gh screensaver crashes at terminal setup stage with "Error: no such font: iwrit: open fonts/iwrit.flf: file does not exist"

    1. Steps to reproduce: gh screensaver -smarquee -- --message-"hello world" --font-"iwrit"

    The terminal is messed up afterwards. The font file is clearly where it's supposed to be, so there might be an error in processing it somewhere in your included packages because its a right-to-left font perhaps? All other fonts process normally.

    opened by ewe2 1
  • Spacing issue in output

    Spacing issue in output

    Noticed that marquee is offset here:

    $ gh screensaver -l   
    fireworks
             marquee
    

    Similarly, when I pass in the incorrect flag i.e. -list instead of --list:

    $ gh screensaver -list
    Error: unknown shorthand flag: 'i' in -ist
                                              Usage:
                                                      screensaver [flags]
    
                                                                         Flags:
                                                                                 -h, --help           help for screensaver
                                                                                                                            -l, --list           List available screensavers and exit
       -R, --repo string    Repository to contribute to
                                                         -s, --saver string   Screensaver to play
    
                                                                                                 unknown shorthand flag: 'i' in -ist
    

    Possibly related to the error log output in #2.

    opened by leereilly 3
Releases(v2.0.1)
Owner
Nate Smith
digital community organizer, trash poet, noise musician, soft boy
Nate Smith
An os/exec like interface for running a command in a container, and being able to easily interact with stdin, stdout, and other adjustments

dockerexec An "os/exec" like interface for running a command in a container, and being able to easily interact with stdin, stdout, and other adjustmen

Segev Finer 2 Jul 14, 2022
A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.

uptime A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments: -interva

Markus Tenghamn 8 Aug 4, 2022
ntest is a cross-platform cli app that runs multiple tests against any address.

ntest ntest is a cross-platform cli app that runs multiple tests against any address. About ntest Having the ability to run common tests against any d

Bruno Schaatsbergen 13 Jan 3, 2022
Clirunner - Package clirunner runs a legacy shell-style CLI as if a human were running it.

clirunner Package clirunner runs a legacy shell-style command-line interpreter (CLI) as if a human were running it. A shell-style CLI offers a prompt

Jeff Regan 0 Jan 4, 2022
Jsos - A operating system that runs system-level javascript, based on the Linux kernel

JsOS ?? An linux-based operating system that runs Javascript code at the system-

Theo Paris 1 Mar 8, 2022
Mimic - a eBPF virtual machine and emulator which runs in userspace

Mimic is a eBPF virtual machine and emulator which runs in userspace. Mimic attempts to 'mimic' the eBPF machinery we find in the Linux kernel, as well as other possible implementation/environments.

null 2 May 1, 2022
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.

Stonks is a terminal based stock visualizer and tracker. Installation Requirements: golang >= 1.13 Manual Clone the repo Run make && make install Pack

Eric Moynihan 514 Aug 1, 2022
An extension for the GitHub Cli application that displays your current contribution graph

gh-graph An extension for the GitHub Cli application that displays your current contribution graph in the terminal (logged out contribution graph) Ins

Benjamin Chadwick 14 Sep 29, 2021
gh extension for bumping version of a repository

gh bump a gh extension for bumping version of a repository. Usage gh bump with another repository. gh bump -R <repository> Installation gh extension

null 35 Jul 29, 2022
GitHub CLI extension to preview your markdown similar to the style of GitHub.

gh markdown-preview GitHub CLI extension to preview your markdown similar to the style of GitHub gh markdown-preview is a GitHub CLI extension to prev

Yusuke Wada 132 Jul 29, 2022
GitHub CLI extension to create and revoke installation tokens

GitHub CLI extension to create and revoke installation tokens.

Carlsberg 1 Nov 22, 2021
Github cli extension to approve or reject pending deployments that are waiting for review.

gh-deploy A gh cli extension to approve or reject pending deployments that are waiting for review. Installation Installation requires a minimum versio

null 4 May 12, 2022
A GitHub CLI extension to view and generate license files.

gh-license A GitHub CLI extension to view and generate license files. All license information is obtained from the GitHub API. NOTE: The only purpose

Shresht 2 Jun 25, 2022
GitHub CLI extension to clone (or update) all repositories in an Organization, with the ability to filter via search queries.

gh-org-repo-sync GitHub CLI extension to clone all repositories in an Organization, with the ability to filter via search queries. If a local clone al

Armel Soro 8 Jul 29, 2022
Terminal client for SimpleNote

GoNote - Terminal client for SimpleNote GoNote is a simple utility for managing notes in your SimpleNote account. It allows basic operations like crea

Konrad Wąsowicz 53 Jul 18, 2022
gomerge is a tool to quickly bulk merge several pull requests from your terminal.

Gomerge is a tool to quickly enable you to bulk merge Github pull requests from your terminal. The intention of this tool is to simplfy, and eventually automate the merging of github pull requests. This tool should be able to run on most systems.

Cian Gallagher 33 Jul 23, 2022
`tmax` is a powerful tool to help you get terminal cmd directly.

The positioning of tmax is a command line tool with a little artificial intelligence. If you frequently deal with the terminal daily, tmax will greatly improve your work efficiency.

Jeremy 29 Jul 24, 2022
YouTube client on your terminal

MeowTube YouTube client on your terminal Table of Contents About Getting Started Usage Contributing About MeowTube is a CLI (Command Line Interface) t

Abdul Fattah Ikhsan 27 Jul 29, 2022
🎄 A Christmas tree right from your terminal!

ctree ?? A Christmas tree right from your terminal! ?? Demo ⌛ No Refresh Don't want the tree to refresh every 2 seconds? Easy! Just add the --no-refre

Matthew Gleich 37 Jan 3, 2022