Git Product home page Git Product logo

hyper-cat's Introduction

Turn your Hyper terminal into nyan cat while typing. Audio included!

Screen Capture

To install, edit ~/.hyper.js and add hyper-cat to plugins:

module.exports = {
  ...
  plugins: [
    "hyper-cat"
  ]
  ...
};

You may then need to reload your terminal.

Configuration

Configuration can by applied by editing ~/.hyper.js as follows:

module.exports = {
  config: {
    ...
    hyperCat: {
      // The number of pixels the cat and rainbow should jump up and down.
      staggerHeight: 2, 
      // The max opacity of the rainbow.
      rainbowMaxAlpha: 1, 
      // When nyan audio shall be enabled:
      //   true will always play nyan audio
      //   false will never play nyan audio
      //   "whileTyping" will play nyan audio while typing
      audioEnabled: "whileTyping", 
      // When nyan video shall be enabled:
      //   true will always play nyan video
      //   false will never play nyan video
      //   "whileTyping" will play nyan video while typing
      videoEnabled: "whileTyping"
    }
    ...
  }
}

hyper-cat's People

Contributors

aaronius avatar curquhart avatar towicode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyper-cat's Issues

No background on a clean Windows Server 2016 install

No other plugins are installed.

image

// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.

module.exports = {
  config: {
    // default font size in pixels for all tabs
    fontSize: 14,

    // font family with optional fallbacks
    fontFamily: 'Consolas, Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',

    // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
    cursorColor: 'rgba(248,28,229,0.8)',

    // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for โ–ˆ
    cursorShape: 'BEAM',

    // set to true for blinking cursor
    cursorBlink: true,

    // color of the text
    foregroundColor: '#fff',

    // terminal background color
    backgroundColor: '#000',

    // border color (window, tabs)
    borderColor: '#333',

    // custom css to embed in the main window
    css: '',

    // custom css to embed in the terminal window
    termCSS: '',

    // set to `true` (without backticks) if you're using a Linux setup that doesn't show native menus
    // default: `false` on Linux, `true` on Windows (ignored on macOS)
    showHamburgerMenu: '',

    // set to `false` if you want to hide the minimize, maximize and close buttons
    // additionally, set to `'left'` if you want them on the left, like in Ubuntu
    // default: `true` on windows and Linux (ignored on macOS)
    showWindowControls: '',

    // custom padding (css format, i.e.: `top right bottom left`)
    padding: '12px 14px',

    // the full list. if you're going to provide the full color palette,
    // including the 6 x 6 color cubes and the grayscale map, just provide
    // an array here instead of a color map object
    colors: {
      black: '#000000',
      red: '#ff0000',
      green: '#33ff00',
      yellow: '#ffff00',
      blue: '#0066ff',
      magenta: '#cc00ff',
      cyan: '#00ffff',
      white: '#d0d0d0',
      lightBlack: '#808080',
      lightRed: '#ff0000',
      lightGreen: '#33ff00',
      lightYellow: '#ffff00',
      lightBlue: '#0066ff',
      lightMagenta: '#cc00ff',
      lightCyan: '#00ffff',
      lightWhite: '#ffffff'
    },

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    // make sure to use a full path if the binary name doesn't work
    // (e.g `C:\\Windows\\System32\\bash.exe` instead of just `bash.exe`)
    // if you're using powershell, make sure to remove the `--login` below
    shell: '',

    // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
    // by default ['--login'] will be used
    shellArgs: ['--login'],

    // for environment variables
    env: {},

    // set to false for no bell
    bell: 'SOUND',

    // if true, selected text will automatically be copied to the clipboard
    copyOnSelect: false

    // if true, on right click selected text will be copied or pasted if no
    // selection is present (true by default on Windows)
    // quickEdit: true

    // URL to custom bell
    // bellSoundURL: 'http://example.com/bell.mp3',

    // for advanced config flags please refer to https://hyper.is/#cfg
  },

  // a list of plugins to fetch and install from npm
  // format: [@org/]project[#version]
  // examples:
  //   `hyperpower`
  //   `@company/project`
  //   `project#1.0.1`
  plugins: ["hyper-cat"],

  // in development, you can create a directory under
  // `~/.hyper_plugins/local/` and include it here
  // to load it and avoid it being `npm install`ed
  localPlugins: []
};

Trouble Installing

I've tried installing with hpm and manually configuring the config file but get the following erros in the console:

bundle.js:1 Error: Cannot find module '/Users/timhope/.hyper_plugins/node_modules/hyper-cat'
    at Module._resolveFilename (module.js:455:15)
    at Function.Module._resolveFilename (/Applications/Hyper.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:403:25)
    at require (internal/module.js:20:19)
    at de.plugins.concat.map.ge (file:///Applications/Hyper.app/Contents/Resources/app/dist/bundle.js:1:8503)
    at Array.map (native)
    at ie (file:///Applications/Hyper.app/Contents/Resources/app/dist/bundle.js:1:8457)
    at Object.A.reload (file:///Applications/Hyper.app/Contents/Resources/app/dist/bundle.js:1:6014)
    at EventEmitter.U.a.on (file:///Applications/Hyper.app/Contents/Resources/app/dist/bundle.js:45:377742)
    at emitOne (events.js:96:13)
    at EventEmitter.emit (events.js:188:7)de.plugins.concat.map.ge @ bundle.js:1
bundle.js:1 [Notification] Plugin load error: "hyper-cat" failed to load in the renderer process. Check Developer Tools for details.

I'm new to Hyper so I'm not sure if there's something I missed or if it might be a Hyper issue. I wound up getting it working by using npm to install it in the plugin directory though.

Audio Toggle not working

Running Windows 10. hyper-cat-toggle-audio doesn't disable the sound effects. Also, plugin tends to get stuck a loop and the Hyper window starts flickering.

I love it and Need some config

I think it should have config about "How long audio and video will play when typing"

When my typing 1 char, Can I make it play 2 sec ?

I really really love this. Thanks alot.

2 scroll bars appears

After install hyper-cat my hyper terminal have vertical and horizontal scroll bars there.
Which is not beautiful, anyway to remove them?

screen shot 2018-03-13 at 6 44 57 pm

Could you please inform that you have to "npm i hyper-cat" under "~/.hyper_plugins" ?

Hi! Thanks for the amazing work!

I'm new to hyper... I found some peculiar behavior (and It is quite difficult to reproduce)

What I did

  1. I did npm i hyper-cat in my home directory
  2. edit ~/.hyper.js (add hyper-cat in plugins)
  3. restart hyper

hyper-cat works, but

hyperCat: {
  videoEnabled: true
}

option doesn't work. it shows black window. ("whileTyping" option works fine)

after I did npm i hyper-cat again in ~/.hyper_plugins directory, this issue was solved.

Doesn't work on hyper 2.0

Installing hyper-cat on hyper 2.0 (both stable and canary) doesn't seem to do anything.

There is a warning in the console:

Warning: "hyper-cat" plugin uses some deprecated CSS classes (cursor-node).
O.Object.keys.forEach @ bundle.js:1
O @ bundle.js:1
(anonymous) @ bundle.js:1
__webpack_require__ @ bundle.js:1
(anonymous) @ bundle.js:1
__webpack_require__ @ bundle.js:1
(anonymous) @ bundle.js:1
(anonymous) @ bundle.js:1
bundle.js:1 Warning: "hypersixteen" plugin uses some deprecated CSS classes (x-screen).
O.Object.keys.forEach @ bundle.js:1
O @ bundle.js:1
(anonymous) @ bundle.js:1
__webpack_require__ @ bundle.js:1
(anonymous) @ bundle.js:1
__webpack_require__ @ bundle.js:1
(anonymous) @ bundle.js:1
(anonymous) @ bundle.js:1

alwaysActive has no effect

I think in the process of fixing hyper-cat for 2.0, the alwaysActive was broken. I have it set to true, but it is not always active.

On Mac OS 10.14.2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.