Skip to content
ttyzeroPublic

About

A theme switcher for anything using ttybus theme channel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

ttythemer

A live look switcher for anything that speaks ttyzero/commons on the theme bus: gitwing, peek, buscope.

╭ ttythemer ● ─────────────────────────╮
│ look              preview            │
│ ▸ nord            ██ accent  ██ ok   │
│   gruvbox         ██ accent2 ██ warn │
│   catppuccin      ╭ sample ────╮     │
│   tokyonight      │ gitwing ●  │     │
│ frame rounded     │ nord  ★12  │     │
│ THEME nord BORDERS=1                 │
│ j/k look  / filter  enter  b frame   │
╰──────────────────────────────────────╯

Moving the list restyles this pane, publishes so the others follow, and writes ~/.config/ttyzero/theme so gitwing/peek/buscope start with the same look after a restart. Incoming theme messages (from a shell, or another ttythemer) update the picker too.

Looks: Charm auto/dark/light, then Catppuccin, Dracula, Nord, Gruvbox, Tokyo Night, Solarized, One Dark, Rosé Pine, Everforest, Kanagawa (dark + light where the palette has both).

Install

curl -fsSL https://raw.githubusercontent.com/ttyzero/ttythemer/main/install.sh | sh

Whole kit after ttybus:

curl -fsSL https://raw.githubusercontent.com/ttyzero/ttybus/main/install-kit.sh | sh

Installs to ~/.local/bin. From source:

cd ~/code/ttythemer && make build
./ttythemer

Keys

key
j / k pick a look (live)
/ filter the catalog
enter broadcast again
b rounded frame on/off
q quit

Bus

ttybus pub theme 'THEME nord'
ttybus pub theme 'THEME catppuccin BORDERS=0'
ttybus pub theme 'THEME light BORDERS=0'

Persist

ttythemer writes the current look to $XDG_CONFIG_HOME/ttyzero/theme (default ~/.config/ttyzero/theme). Every companion pane reads it on startup, below --theme / $TTYTHEME / $CLITHEME. Override the path with $TTYTHEME_FILE. Hand-edit if you want:

THEME nord BORDERS=0

About

A theme switcher for anything using ttybus theme channel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages