hyper-focused

v0.0.1
toggle 'focused' class on hyper_main div based on windows focus

hyper-focused

Small hyper plugin that adds focused class on .hyper_main div based on window focus.

This makes it possible to, for example, have different border color for active terminal:

module.exports = {
  config: {
    css: `
      .hyper_main {
        border-width: 2px;
      }

      .hyper_main.focused {
        border-color: red !important;
      }
    `
  },

  plugins: ["hyper-focused"]
}
npm i hyper-focused

Metadata

  • MIT
  • Whatever
  • Szymon Kaliski
  • released 10/12/2017

Downloads

Maintainers