1.1.0 • Published 8 years ago

hyperterm-tab-icons v1.1.0

Weekly downloads
23
License
MIT
Repository
github
Last release
8 years ago

HyperTerm Tab Icons

Icons in the header tabs for the current running process in HyperTerm.

How It Works

Uses fuzzaldrin to try to match the current tab title against the icons that have been pre-compiled and displays it. Has the ability to map different icons and styles.

Demo

alt demo

Configuration

There are few options to customize the different icons and styles applied. You may configure these inside of ~/.hyperterm.js.

config.tabIcons.activeStyle

  • Type: object
  • Default: { transition: 'opacity 200ms ease-in' }

This object can be any CSSStyleDeclaration allowed. Essentially pass an inline style object the same way you would with React.

config.tabIcons.inactiveStyle

  • Type: object
  • Default: { color: '#fff', opacity: 0.3 }

This object can be any CSSStyleDeclaration allowed. Essentially pass an inline style object the same way you would with React.

config.tabIcons.mapIcons

  • Type: object
  • Default: {}

Map of icon to array of process names. Example:

{
  nodejs: ['node'],
  docker: ['docker-compose'],
}

Look inside src/icons for possible icons to map to. Look at src/mapIcons.js for defaults.

config.tabIcons.mapColors

  • Type: object
  • Default: {}

Map of process name to color string. Example:

{
  bash: '#FFF',
  fish: '#D8494F',
  zsh: '#C5DB00',
}

Look at src/mapColors.js for defaults.

config.tabIcons.disableColors

  • Type: boolean
  • Default: false

Toggles icon colors. Similar to setting all colors to #FFF.

Contribution

Obviously there are an almost infinite amount of processes out there, so any help adding new icons, mapping colors, et cetera is greatly appreciated!

Credit

Inspired by Atom's file-icons.