Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set custom background image in Hyperterm

Tags:

hyperterm

I am trying to switch to Hyperterm from iTerm that I am currently using. But I had a custom background image in my terminal and I'd like to keep having this in new terminal.

I found only backgroundColor in options so far, but nothing about background image.

like image 394
just-boris Avatar asked Dec 19 '22 14:12

just-boris


2 Answers

After some discussion on Github, I have found a solution. Add the following options into your config file:

module.exports = {
  css: `
    .terms_terms {
      background: url(file://path-to-file) center;
      background-size: cover;
    }
  `,

  termCSS: `
    x-screen {
      background: transparent !important;
    }
  `
};

Hope it helps for somebody else.

like image 118
just-boris Avatar answered Apr 08 '23 23:04

just-boris


I manage to change it using

// custom css to embed in the main window
css: `
  .terms_terms {
    background: url(file://<path-to-image>) center;
    background-size: cover;
  }
  .terms_termGroup {
    background: rgba(0,0,0,0.7) !important
  }
`

inside ~/hyper.js

Using x-screen didnt work for we

like image 26
vrunoa Avatar answered Apr 08 '23 23:04

vrunoa