Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

What is this?

A lightweight shell + preset system that gives each new Wave tab a random background image, applied before the shell prompt even appears — completely zero latency.

How it works

Two mechanisms run in parallel:

  1. Tab creation time — Wave reads tab:background from settings.json (set by the previous tab) and applies the preset CSS before rendering the terminal → instant
  2. Shell startup.zshrc at the very top picks a random image, applies it via wsh setbg, and rotates tab:background for the next tab
 Tab 1 opens → gets preset bg@custom042 (instant, at tab creation)
      └── .zshrc: wsh setbg random.jpg + set tab:background = bg@custom123
 Tab 2 opens → gets preset bg@custom123 (instant)  ← set by tab 1
      └── .zshrc: wsh setbg random.jpg + set tab:background = bg@custom307
 Tab 3 opens → gets preset bg@custom307 (instant)  ← set by tab 2

No plugins, no forks — just shell scripts and Wave config files.

Quick install

git clone https://github.com/wait2050/wave-random-bg.git
cd wave-random-bg
zsh install.sh ~/Pictures/wallpapers 0.3

Links

Built with the help of Claude & DeepSeek.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.