Package Exports
- hyper-random-background
- hyper-random-background/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyper-random-background) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hyper-random-background
Set background with random images every time interval.
Install
npm i hyper-random-backgroundUsage
Add to ~/.hyper.js:
module.exports = {
...
config: {
...
// It is recommended to add transparency to default backgroundColor
backgroundColor: 'rgba(0, 0, 0, 0.9)',
...
backgroundImage: {
// Full path to where images are stored
folder: "/home/remisiki/Pictures/terminal-background-image",
// Overlay color in front of the image, default: rgba(0, 0, 0, 0.7)
overlayColor: "rgba(0, 0, 0, 0.7)",
// Time interval in second to change background, default: 600
interval: 10,
// Whether use fade effect when switching background, default: true
fade: true,
// Size of blur effect, default: "0px"
blur: "5px",
},
},
...
plugins: [
...
"hyper-random-background",
],
...
}