• Stars
    star
    246
  • Rank 164,223 (Top 4 %)
  • Language
    JavaScript
  • Created about 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

adds a gradient border to the Hyper terminal

hyperborder - extension for Hyper

adds a gradient border to the Hyper terminal

Installation

add it to plugins in your ~/.hyper.js configuration

module.exports = {
  ...
  plugins: ['hyperborder']
  ...
}

then just restart Hyper app or go to the menu 'Plugins / Update All Now'

Configuration

The following settings can be configured by adding a hyperBorder section in your .hyper.js config section:

Setting Type Description
borderWidth string CSS string for how thick the borders should be
borderRadiusInner string CSS string for round inner corners
borderRadiusOuter string CSS string for round outer corners
borderColors string, string[] The color(s) for the border
adminBorderColors string, string[] The color(s) for the border for an admin/elevated window. This follows the precedence of adminBorderColors > borderColors > defaultColors
blurredColors string, string[] The color(s) of the borders when the window isn't active
blurredAdminColors string, string[] The color(s) of the borders when the admin/elevated window isn't active. This follows the precedence of blurredAdminColors > blurredColors > adminBorderColors > borderColors > defaultColors

A note on admin/root colors

The use of Hyper under the admin/root account is mainly intended for Windows' users (where it is common to run an application in elevated mode), since on Linux/OSX you would typically utilize the sudo <command> command. Technically you can run Hyper as root on non-Windows machines (there are issues running Hyper as root under a Wayland desktop), though in this case, the root user will actually have their own copy of .hyper.js configuration.

EXAMPLE: Set Border Colors And Width

module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['#fc1da7', '#fba506'],
        borderWidth: '8px'
      }
    ...
  }
}

EXAMPLE: Set Border Colors To Random Colors

In addition, you can set any color value to 'random' (string value):

module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['random','random'],
        borderWidth: '8px'
      }
    ...
  }
}

Then every newly opened Hyper terminal window will have a different colored border.

EXAMPLE: Animate Border Colors

You like some animations? Then try this:

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: true,
      ...
    }
    ...
  }
}

To change the speed of animation, specify an object with a duration property in milliseconds:

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: {
        duration: '1000',  // default is 18000
      },
      ...
    }
    ...
  }
}

EXAMPLE: Angled Gradients

Because we use CSS3's linear-gradient, we're able to specify angles at which to create the radius. Set your own angle like this:

module.exports = {
  config: {
    ...
    hyperBorder: {
      borderAngle: '180deg',
      ...
    }
    ...
  }
}

Download Hyper here

https://hyper.is/

More Repositories

1

angular-jspm-mobx-starter-project

simple starter project using angular 1.5, angular-material, mobx, and jspm
JavaScript
14
star
2

eventicus.de

Social Event Community
JavaScript
7
star
3

micro-middleware

a simple helper to add middleware to your zeit/micro service
JavaScript
5
star
4

devise_koala_connectable

Rails gem for adding Facebook authentification capabillity to devise using koala
Ruby
5
star
5

Streamly.js

A very small functional reactive programming lib for JavaScript.
JavaScript
3
star
6

dragonruby-sokoban-game

A Sokoban Clone using DragonRuby Game Toolkit
Ruby
3
star
7

mickrigtest

a minimal testing framework for JavaScript written in CoffeeScript
CoffeeScript
2
star
8

BasecampExport

Simple command line tool to export data from Basecamp
Ruby
2
star
9

JSXUL-JSUML

create UML diagrams using JavaScript and XML
JavaScript
2
star
10

angular-material-intro

A simple Intro.js like script for AngularJS and Material Design
JavaScript
2
star
11

dragonruby_star_defender

DragonRuby Star Defender Game is an exciting space-themed Shoot-Em-Up created with DragonRuby GTK.
Ruby
1
star
12

dragonruby-snake

a implementation of the classic snake game in DragonRuby
Ruby
1
star
13

Responsive-Boilerplate-Theme

A Responsive Boilerplate Theme for WordPress
1
star
14

WMPlayer

MacRuby MP3 Audio Player
Ruby
1
star
15

functional-date-time-helpers

pure functional date time helpers
JavaScript
1
star
16

MathiasKarstaedt.de

my personal portfolio site
HTML
1
star
17

icanhazdadjoke

A simple Ruby client for the icanhazdadjoke API.
Ruby
1
star
18

JQTouch-4-Ruby

A ruby DSL for creating simple jQTouch mobile applications
JavaScript
1
star
19

comics-scraper

an educational bash script to scrape free comics
Shell
1
star
20

Temply

a micro JavaScript template framework
JavaScript
1
star
21

simplest-angular-redux-example

simplest example of Redux in Angular
JavaScript
1
star
22

tado_client

a Ruby client for the tado thermostat API
Ruby
1
star