1.6.1 • Published 6 months ago

hyper-background v1.6.1

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
6 months ago

hyper-background

:milky_way: Change the background of your hyper terminal!

js-standard-style

dependencies Status devDependencies Status

Tip: Make hyper-background the first plugin in your plugins list for optimal performance (it won't disrupt the speed of other plugins due to its performant and small size).

Technically the first plugin and the whole and sole easy way to do this :stuck_out_tongue_closed_eyes: Fun fact: We boilerplated and wrote hyper-background in 2 hours. And it worked the first time.

NOTE: This plugin is small, which might cause it to seem unmaintained. If you see the plugin seem so, I assure you that this plugin is actively maintained and if you wish to propose a new feature, report an issue or you are submitting a PR, do not hesitate to do so under grounds of umaintainence. If you face issues, read the FAQ.

Supports Windows, macOS and Linux. If you have any issues, report them at the repository's issue tracker.

Installation

Manually

Edit .hyper.js and add "hyper-background" to the plugins array in the beginning (preferably) which should be near the end of your file.

Using hpm-cli

If you have hpm-cli installed, run

hpm install hyper-background

FAQ

How should I specify the path?

Either you can provide an absolute path such as /path/to/image.png or a relative path from your home directory which hyper-background will resolve automatically.

Does this support Hyper 2?

Yep, this plugin supports Hyper 2.x.

What about a slideshow feature?

This feature is in the works and coming soon.

Example of a customized terminal

Screenshot_from_2017-08-07_13-50-38.png

Usage

In your .hyper.js file, which probably looks something like this at this point:

module.exports = {
  config: {
    // font config
    fontSize: 14,
    fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
    // cursor config
    cursorColor: '#EBCB8B',
    cursorShape: 'BLOCK',
    cursorBlink: true,
    // color config
    foregroundColor: '#fff',
    backgroundColor: '#000',
    borderColor: '#333',
    // hyper-background can handle any value of the CSS key, whether populated manually or populated by a plugin, and will not overwrite it.
    css: '',
    termCSS: '',
    // window and color config
    showHamburgerMenu: true,
    showWindowControls: '',
    padding: '12px 14px',
    colors: {
      ...
    },
    // shell config
    shell: '/bin/bash',
    shellArgs: ['--login'],
    env: {},
    // behaviour config
    bell: false,
    copyOnSelect: false,
  },
  plugins: [
    "hyper-background"
  ]
};

You will need to add the path to your selected background in the config object as backgroundImage after which your .hyper.js should look like:

module.exports = {
  config: {
    // font config
    fontSize: 14,
    fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
    // cursor config
    cursorColor: '#EBCB8B',
    cursorShape: 'BLOCK',
    cursorBlink: true,
    // color config
    foregroundColor: '#fff',
    backgroundColor: '#000',
    borderColor: '#333',
    // css config
    css: '',
    termCSS: '',
    // window and color config
    showHamburgerMenu: true,
    showWindowControls: '',
    padding: '12px 14px',
    colors: {
      ...
    },
    // shell config
    shell: '/bin/zsh',
    shellArgs: ['--login'],
    env: {},
    // behaviour config
    bell: false,
    copyOnSelect: false,

    // Here lies our background image.
    backgroundImage: "/path/to/your/image"
  },
  plugins: [
    "hyper-background"
  ]
};

After this, you should have your background image ready to go!

Development

The recommended Node version required in development is Node 8+. while the target Node version is 7. Node 6 is the absolute necessity and will work, but we are not targeting it as Hyper uses Node 7.4 internally.

  • Run tests via npm test
  • You can bundle the plugin via npm run build
1.6.1

6 months ago

1.6.0

6 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago