@kecan0406/ttheme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +30 -0
- package/README.md +203 -0
- package/bin/ttheme.js +4473 -0
- package/dist/alacritty/config/alma.toml +8 -0
- package/dist/alacritty/config/anko.toml +8 -0
- package/dist/alacritty/config/asuka.toml +8 -0
- package/dist/alacritty/config/azusa.toml +8 -0
- package/dist/alacritty/config/battler.toml +8 -0
- package/dist/alacritty/config/beatrice.toml +8 -0
- package/dist/alacritty/config/bernkastel.toml +8 -0
- package/dist/alacritty/config/bocchi.toml +8 -0
- package/dist/alacritty/config/cirno.toml +8 -0
- package/dist/alacritty/config/david.toml +8 -0
- package/dist/alacritty/config/determination.toml +8 -0
- package/dist/alacritty/config/dorothy.toml +8 -0
- package/dist/alacritty/config/eva01.toml +8 -0
- package/dist/alacritty/config/flandre.toml +8 -0
- package/dist/alacritty/config/fox.toml +8 -0
- package/dist/alacritty/config/glitch.toml +8 -0
- package/dist/alacritty/config/hinamizawa.toml +8 -0
- package/dist/alacritty/config/hitagi.toml +8 -0
- package/dist/alacritty/config/homura.toml +8 -0
- package/dist/alacritty/config/jill.toml +8 -0
- package/dist/alacritty/config/joker.toml +8 -0
- package/dist/alacritty/config/jupiter.toml +8 -0
- package/dist/alacritty/config/kagami.toml +8 -0
- package/dist/alacritty/config/kaito.toml +8 -0
- package/dist/alacritty/config/kaworu.toml +8 -0
- package/dist/alacritty/config/kita.toml +8 -0
- package/dist/alacritty/config/konata.toml +8 -0
- package/dist/alacritty/config/kou.toml +8 -0
- package/dist/alacritty/config/kumori.toml +8 -0
- package/dist/alacritty/config/kurisu.toml +8 -0
- package/dist/alacritty/config/kyoko.toml +8 -0
- package/dist/alacritty/config/kyubey.toml +8 -0
- package/dist/alacritty/config/lain.toml +8 -0
- package/dist/alacritty/config/lambdadelta.toml +8 -0
- package/dist/alacritty/config/len.toml +8 -0
- package/dist/alacritty/config/lucy.toml +8 -0
- package/dist/alacritty/config/luka.toml +8 -0
- package/dist/alacritty/config/madoka.toml +8 -0
- package/dist/alacritty/config/magi.toml +8 -0
- package/dist/alacritty/config/mami.toml +8 -0
- package/dist/alacritty/config/marisa.toml +8 -0
- package/dist/alacritty/config/mars.toml +8 -0
- package/dist/alacritty/config/mayuri.toml +8 -0
- package/dist/alacritty/config/meiko.toml +8 -0
- package/dist/alacritty/config/mercury.toml +8 -0
- package/dist/alacritty/config/mettaton.toml +8 -0
- package/dist/alacritty/config/miku.toml +8 -0
- package/dist/alacritty/config/mio.toml +8 -0
- package/dist/alacritty/config/mion.toml +8 -0
- package/dist/alacritty/config/misato.toml +8 -0
- package/dist/alacritty/config/miyuki.toml +8 -0
- package/dist/alacritty/config/monika.toml +8 -0
- package/dist/alacritty/config/moon.toml +8 -0
- package/dist/alacritty/config/mugi.toml +8 -0
- package/dist/alacritty/config/nadeko.toml +8 -0
- package/dist/alacritty/config/nagisa.toml +8 -0
- package/dist/alacritty/config/natsuki.toml +8 -0
- package/dist/alacritty/config/nazuna.toml +8 -0
- package/dist/alacritty/config/neutral.toml +8 -0
- package/dist/alacritty/config/nightcity.toml +8 -0
- package/dist/alacritty/config/nijika.toml +8 -0
- package/dist/alacritty/config/oracle.toml +8 -0
- package/dist/alacritty/config/panther.toml +8 -0
- package/dist/alacritty/config/papyrus.toml +8 -0
- package/dist/alacritty/config/patchouli.toml +8 -0
- package/dist/alacritty/config/queen.toml +8 -0
- package/dist/alacritty/config/rebecca.toml +8 -0
- package/dist/alacritty/config/rei.toml +8 -0
- package/dist/alacritty/config/reimu.toml +8 -0
- package/dist/alacritty/config/rena.toml +8 -0
- package/dist/alacritty/config/rika.toml +8 -0
- package/dist/alacritty/config/rin.toml +8 -0
- package/dist/alacritty/config/ritsu.toml +8 -0
- package/dist/alacritty/config/rokkenjima.toml +8 -0
- package/dist/alacritty/config/ryo.toml +8 -0
- package/dist/alacritty/config/sans.toml +8 -0
- package/dist/alacritty/config/satoko.toml +8 -0
- package/dist/alacritty/config/sayaka.toml +8 -0
- package/dist/alacritty/config/sayori.toml +8 -0
- package/dist/alacritty/config/sei.toml +8 -0
- package/dist/alacritty/config/seri.toml +8 -0
- package/dist/alacritty/config/shinobu.toml +8 -0
- package/dist/alacritty/config/skull.toml +8 -0
- package/dist/alacritty/config/stella.toml +8 -0
- package/dist/alacritty/config/suzuha.toml +8 -0
- package/dist/alacritty/config/toriel.toml +8 -0
- package/dist/alacritty/config/tsubasa.toml +8 -0
- package/dist/alacritty/config/tsukasa.toml +8 -0
- package/dist/alacritty/config/undyne.toml +8 -0
- package/dist/alacritty/config/valhalla.toml +8 -0
- package/dist/alacritty/config/velvet.toml +8 -0
- package/dist/alacritty/config/venus.toml +8 -0
- package/dist/alacritty/config/yofukashi.toml +8 -0
- package/dist/alacritty/config/youmu.toml +8 -0
- package/dist/alacritty/config/yui.toml +8 -0
- package/dist/alacritty/config/yuri.toml +8 -0
- package/dist/alacritty/themes/alma.toml +34 -0
- package/dist/alacritty/themes/anko.toml +34 -0
- package/dist/alacritty/themes/asuka.toml +34 -0
- package/dist/alacritty/themes/azusa.toml +34 -0
- package/dist/alacritty/themes/battler.toml +34 -0
- package/dist/alacritty/themes/beatrice.toml +34 -0
- package/dist/alacritty/themes/bernkastel.toml +34 -0
- package/dist/alacritty/themes/bocchi.toml +34 -0
- package/dist/alacritty/themes/cirno.toml +34 -0
- package/dist/alacritty/themes/david.toml +34 -0
- package/dist/alacritty/themes/determination.toml +34 -0
- package/dist/alacritty/themes/dorothy.toml +34 -0
- package/dist/alacritty/themes/eva01.toml +34 -0
- package/dist/alacritty/themes/flandre.toml +34 -0
- package/dist/alacritty/themes/fox.toml +34 -0
- package/dist/alacritty/themes/glitch.toml +34 -0
- package/dist/alacritty/themes/hinamizawa.toml +34 -0
- package/dist/alacritty/themes/hitagi.toml +34 -0
- package/dist/alacritty/themes/homura.toml +34 -0
- package/dist/alacritty/themes/jill.toml +34 -0
- package/dist/alacritty/themes/joker.toml +34 -0
- package/dist/alacritty/themes/jupiter.toml +34 -0
- package/dist/alacritty/themes/kagami.toml +34 -0
- package/dist/alacritty/themes/kaito.toml +34 -0
- package/dist/alacritty/themes/kaworu.toml +34 -0
- package/dist/alacritty/themes/kita.toml +34 -0
- package/dist/alacritty/themes/konata.toml +34 -0
- package/dist/alacritty/themes/kou.toml +34 -0
- package/dist/alacritty/themes/kumori.toml +34 -0
- package/dist/alacritty/themes/kurisu.toml +34 -0
- package/dist/alacritty/themes/kyoko.toml +34 -0
- package/dist/alacritty/themes/kyubey.toml +34 -0
- package/dist/alacritty/themes/lain.toml +34 -0
- package/dist/alacritty/themes/lambdadelta.toml +34 -0
- package/dist/alacritty/themes/len.toml +34 -0
- package/dist/alacritty/themes/lucy.toml +34 -0
- package/dist/alacritty/themes/luka.toml +34 -0
- package/dist/alacritty/themes/madoka.toml +34 -0
- package/dist/alacritty/themes/magi.toml +34 -0
- package/dist/alacritty/themes/mami.toml +34 -0
- package/dist/alacritty/themes/marisa.toml +34 -0
- package/dist/alacritty/themes/mars.toml +34 -0
- package/dist/alacritty/themes/mayuri.toml +34 -0
- package/dist/alacritty/themes/meiko.toml +34 -0
- package/dist/alacritty/themes/mercury.toml +34 -0
- package/dist/alacritty/themes/mettaton.toml +34 -0
- package/dist/alacritty/themes/miku.toml +34 -0
- package/dist/alacritty/themes/mio.toml +34 -0
- package/dist/alacritty/themes/mion.toml +34 -0
- package/dist/alacritty/themes/misato.toml +34 -0
- package/dist/alacritty/themes/miyuki.toml +34 -0
- package/dist/alacritty/themes/monika.toml +34 -0
- package/dist/alacritty/themes/moon.toml +34 -0
- package/dist/alacritty/themes/mugi.toml +34 -0
- package/dist/alacritty/themes/nadeko.toml +34 -0
- package/dist/alacritty/themes/nagisa.toml +34 -0
- package/dist/alacritty/themes/natsuki.toml +34 -0
- package/dist/alacritty/themes/nazuna.toml +34 -0
- package/dist/alacritty/themes/neutral.toml +34 -0
- package/dist/alacritty/themes/nightcity.toml +34 -0
- package/dist/alacritty/themes/nijika.toml +34 -0
- package/dist/alacritty/themes/oracle.toml +34 -0
- package/dist/alacritty/themes/panther.toml +34 -0
- package/dist/alacritty/themes/papyrus.toml +34 -0
- package/dist/alacritty/themes/patchouli.toml +34 -0
- package/dist/alacritty/themes/queen.toml +34 -0
- package/dist/alacritty/themes/rebecca.toml +34 -0
- package/dist/alacritty/themes/rei.toml +34 -0
- package/dist/alacritty/themes/reimu.toml +34 -0
- package/dist/alacritty/themes/rena.toml +34 -0
- package/dist/alacritty/themes/rika.toml +34 -0
- package/dist/alacritty/themes/rin.toml +34 -0
- package/dist/alacritty/themes/ritsu.toml +34 -0
- package/dist/alacritty/themes/rokkenjima.toml +34 -0
- package/dist/alacritty/themes/ryo.toml +34 -0
- package/dist/alacritty/themes/sans.toml +34 -0
- package/dist/alacritty/themes/satoko.toml +34 -0
- package/dist/alacritty/themes/sayaka.toml +34 -0
- package/dist/alacritty/themes/sayori.toml +34 -0
- package/dist/alacritty/themes/sei.toml +34 -0
- package/dist/alacritty/themes/seri.toml +34 -0
- package/dist/alacritty/themes/shinobu.toml +34 -0
- package/dist/alacritty/themes/skull.toml +34 -0
- package/dist/alacritty/themes/stella.toml +34 -0
- package/dist/alacritty/themes/suzuha.toml +34 -0
- package/dist/alacritty/themes/toriel.toml +34 -0
- package/dist/alacritty/themes/tsubasa.toml +34 -0
- package/dist/alacritty/themes/tsukasa.toml +34 -0
- package/dist/alacritty/themes/undyne.toml +34 -0
- package/dist/alacritty/themes/valhalla.toml +34 -0
- package/dist/alacritty/themes/velvet.toml +34 -0
- package/dist/alacritty/themes/venus.toml +34 -0
- package/dist/alacritty/themes/yofukashi.toml +34 -0
- package/dist/alacritty/themes/youmu.toml +34 -0
- package/dist/alacritty/themes/yui.toml +34 -0
- package/dist/alacritty/themes/yuri.toml +34 -0
- package/dist/ghostty/themes/alma +29 -0
- package/dist/ghostty/themes/anko +29 -0
- package/dist/ghostty/themes/asuka +29 -0
- package/dist/ghostty/themes/azusa +29 -0
- package/dist/ghostty/themes/battler +29 -0
- package/dist/ghostty/themes/beatrice +29 -0
- package/dist/ghostty/themes/bernkastel +29 -0
- package/dist/ghostty/themes/bocchi +29 -0
- package/dist/ghostty/themes/cirno +29 -0
- package/dist/ghostty/themes/david +29 -0
- package/dist/ghostty/themes/determination +29 -0
- package/dist/ghostty/themes/dorothy +29 -0
- package/dist/ghostty/themes/eva01 +29 -0
- package/dist/ghostty/themes/flandre +29 -0
- package/dist/ghostty/themes/fox +29 -0
- package/dist/ghostty/themes/glitch +29 -0
- package/dist/ghostty/themes/hinamizawa +29 -0
- package/dist/ghostty/themes/hitagi +29 -0
- package/dist/ghostty/themes/homura +29 -0
- package/dist/ghostty/themes/jill +29 -0
- package/dist/ghostty/themes/joker +29 -0
- package/dist/ghostty/themes/jupiter +29 -0
- package/dist/ghostty/themes/kagami +29 -0
- package/dist/ghostty/themes/kaito +29 -0
- package/dist/ghostty/themes/kaworu +29 -0
- package/dist/ghostty/themes/kita +29 -0
- package/dist/ghostty/themes/konata +29 -0
- package/dist/ghostty/themes/kou +29 -0
- package/dist/ghostty/themes/kumori +29 -0
- package/dist/ghostty/themes/kurisu +29 -0
- package/dist/ghostty/themes/kyoko +29 -0
- package/dist/ghostty/themes/kyubey +29 -0
- package/dist/ghostty/themes/lain +29 -0
- package/dist/ghostty/themes/lambdadelta +29 -0
- package/dist/ghostty/themes/len +29 -0
- package/dist/ghostty/themes/lucy +29 -0
- package/dist/ghostty/themes/luka +29 -0
- package/dist/ghostty/themes/madoka +29 -0
- package/dist/ghostty/themes/magi +29 -0
- package/dist/ghostty/themes/mami +29 -0
- package/dist/ghostty/themes/marisa +29 -0
- package/dist/ghostty/themes/mars +29 -0
- package/dist/ghostty/themes/mayuri +29 -0
- package/dist/ghostty/themes/meiko +29 -0
- package/dist/ghostty/themes/mercury +29 -0
- package/dist/ghostty/themes/mettaton +29 -0
- package/dist/ghostty/themes/miku +29 -0
- package/dist/ghostty/themes/mio +29 -0
- package/dist/ghostty/themes/mion +29 -0
- package/dist/ghostty/themes/misato +29 -0
- package/dist/ghostty/themes/miyuki +29 -0
- package/dist/ghostty/themes/monika +29 -0
- package/dist/ghostty/themes/moon +29 -0
- package/dist/ghostty/themes/mugi +29 -0
- package/dist/ghostty/themes/nadeko +29 -0
- package/dist/ghostty/themes/nagisa +29 -0
- package/dist/ghostty/themes/natsuki +29 -0
- package/dist/ghostty/themes/nazuna +29 -0
- package/dist/ghostty/themes/neutral +29 -0
- package/dist/ghostty/themes/nightcity +29 -0
- package/dist/ghostty/themes/nijika +29 -0
- package/dist/ghostty/themes/oracle +29 -0
- package/dist/ghostty/themes/panther +29 -0
- package/dist/ghostty/themes/papyrus +29 -0
- package/dist/ghostty/themes/patchouli +29 -0
- package/dist/ghostty/themes/queen +29 -0
- package/dist/ghostty/themes/rebecca +29 -0
- package/dist/ghostty/themes/rei +29 -0
- package/dist/ghostty/themes/reimu +29 -0
- package/dist/ghostty/themes/rena +29 -0
- package/dist/ghostty/themes/rika +29 -0
- package/dist/ghostty/themes/rin +29 -0
- package/dist/ghostty/themes/ritsu +29 -0
- package/dist/ghostty/themes/rokkenjima +29 -0
- package/dist/ghostty/themes/ryo +29 -0
- package/dist/ghostty/themes/sans +29 -0
- package/dist/ghostty/themes/satoko +29 -0
- package/dist/ghostty/themes/sayaka +29 -0
- package/dist/ghostty/themes/sayori +29 -0
- package/dist/ghostty/themes/sei +29 -0
- package/dist/ghostty/themes/seri +29 -0
- package/dist/ghostty/themes/shinobu +29 -0
- package/dist/ghostty/themes/skull +29 -0
- package/dist/ghostty/themes/stella +29 -0
- package/dist/ghostty/themes/suzuha +29 -0
- package/dist/ghostty/themes/toriel +29 -0
- package/dist/ghostty/themes/tsubasa +29 -0
- package/dist/ghostty/themes/tsukasa +29 -0
- package/dist/ghostty/themes/undyne +29 -0
- package/dist/ghostty/themes/valhalla +29 -0
- package/dist/ghostty/themes/velvet +29 -0
- package/dist/ghostty/themes/venus +29 -0
- package/dist/ghostty/themes/yofukashi +29 -0
- package/dist/ghostty/themes/youmu +29 -0
- package/dist/ghostty/themes/yui +29 -0
- package/dist/ghostty/themes/yuri +29 -0
- package/dist/ghostty/ttheme.conf +9 -0
- package/dist/iterm2/alma.itermcolors +305 -0
- package/dist/iterm2/anko.itermcolors +305 -0
- package/dist/iterm2/asuka.itermcolors +305 -0
- package/dist/iterm2/azusa.itermcolors +305 -0
- package/dist/iterm2/battler.itermcolors +305 -0
- package/dist/iterm2/beatrice.itermcolors +305 -0
- package/dist/iterm2/bernkastel.itermcolors +305 -0
- package/dist/iterm2/bocchi.itermcolors +305 -0
- package/dist/iterm2/cirno.itermcolors +305 -0
- package/dist/iterm2/david.itermcolors +305 -0
- package/dist/iterm2/determination.itermcolors +305 -0
- package/dist/iterm2/dorothy.itermcolors +305 -0
- package/dist/iterm2/eva01.itermcolors +305 -0
- package/dist/iterm2/flandre.itermcolors +305 -0
- package/dist/iterm2/fox.itermcolors +305 -0
- package/dist/iterm2/glitch.itermcolors +305 -0
- package/dist/iterm2/hinamizawa.itermcolors +305 -0
- package/dist/iterm2/hitagi.itermcolors +305 -0
- package/dist/iterm2/homura.itermcolors +305 -0
- package/dist/iterm2/jill.itermcolors +305 -0
- package/dist/iterm2/joker.itermcolors +305 -0
- package/dist/iterm2/jupiter.itermcolors +305 -0
- package/dist/iterm2/kagami.itermcolors +305 -0
- package/dist/iterm2/kaito.itermcolors +305 -0
- package/dist/iterm2/kaworu.itermcolors +305 -0
- package/dist/iterm2/kita.itermcolors +305 -0
- package/dist/iterm2/konata.itermcolors +305 -0
- package/dist/iterm2/kou.itermcolors +305 -0
- package/dist/iterm2/kumori.itermcolors +305 -0
- package/dist/iterm2/kurisu.itermcolors +305 -0
- package/dist/iterm2/kyoko.itermcolors +305 -0
- package/dist/iterm2/kyubey.itermcolors +305 -0
- package/dist/iterm2/lain.itermcolors +305 -0
- package/dist/iterm2/lambdadelta.itermcolors +305 -0
- package/dist/iterm2/len.itermcolors +305 -0
- package/dist/iterm2/lucy.itermcolors +305 -0
- package/dist/iterm2/luka.itermcolors +305 -0
- package/dist/iterm2/madoka.itermcolors +305 -0
- package/dist/iterm2/magi.itermcolors +305 -0
- package/dist/iterm2/mami.itermcolors +305 -0
- package/dist/iterm2/marisa.itermcolors +305 -0
- package/dist/iterm2/mars.itermcolors +305 -0
- package/dist/iterm2/mayuri.itermcolors +305 -0
- package/dist/iterm2/meiko.itermcolors +305 -0
- package/dist/iterm2/mercury.itermcolors +305 -0
- package/dist/iterm2/mettaton.itermcolors +305 -0
- package/dist/iterm2/miku.itermcolors +305 -0
- package/dist/iterm2/mio.itermcolors +305 -0
- package/dist/iterm2/mion.itermcolors +305 -0
- package/dist/iterm2/misato.itermcolors +305 -0
- package/dist/iterm2/miyuki.itermcolors +305 -0
- package/dist/iterm2/monika.itermcolors +305 -0
- package/dist/iterm2/moon.itermcolors +305 -0
- package/dist/iterm2/mugi.itermcolors +305 -0
- package/dist/iterm2/nadeko.itermcolors +305 -0
- package/dist/iterm2/nagisa.itermcolors +305 -0
- package/dist/iterm2/natsuki.itermcolors +305 -0
- package/dist/iterm2/nazuna.itermcolors +305 -0
- package/dist/iterm2/neutral.itermcolors +305 -0
- package/dist/iterm2/nightcity.itermcolors +305 -0
- package/dist/iterm2/nijika.itermcolors +305 -0
- package/dist/iterm2/oracle.itermcolors +305 -0
- package/dist/iterm2/panther.itermcolors +305 -0
- package/dist/iterm2/papyrus.itermcolors +305 -0
- package/dist/iterm2/patchouli.itermcolors +305 -0
- package/dist/iterm2/queen.itermcolors +305 -0
- package/dist/iterm2/rebecca.itermcolors +305 -0
- package/dist/iterm2/rei.itermcolors +305 -0
- package/dist/iterm2/reimu.itermcolors +305 -0
- package/dist/iterm2/rena.itermcolors +305 -0
- package/dist/iterm2/rika.itermcolors +305 -0
- package/dist/iterm2/rin.itermcolors +305 -0
- package/dist/iterm2/ritsu.itermcolors +305 -0
- package/dist/iterm2/rokkenjima.itermcolors +305 -0
- package/dist/iterm2/ryo.itermcolors +305 -0
- package/dist/iterm2/sans.itermcolors +305 -0
- package/dist/iterm2/satoko.itermcolors +305 -0
- package/dist/iterm2/sayaka.itermcolors +305 -0
- package/dist/iterm2/sayori.itermcolors +305 -0
- package/dist/iterm2/sei.itermcolors +305 -0
- package/dist/iterm2/seri.itermcolors +305 -0
- package/dist/iterm2/shinobu.itermcolors +305 -0
- package/dist/iterm2/skull.itermcolors +305 -0
- package/dist/iterm2/stella.itermcolors +305 -0
- package/dist/iterm2/suzuha.itermcolors +305 -0
- package/dist/iterm2/toriel.itermcolors +305 -0
- package/dist/iterm2/tsubasa.itermcolors +305 -0
- package/dist/iterm2/tsukasa.itermcolors +305 -0
- package/dist/iterm2/undyne.itermcolors +305 -0
- package/dist/iterm2/valhalla.itermcolors +305 -0
- package/dist/iterm2/velvet.itermcolors +305 -0
- package/dist/iterm2/venus.itermcolors +305 -0
- package/dist/iterm2/yofukashi.itermcolors +305 -0
- package/dist/iterm2/youmu.itermcolors +305 -0
- package/dist/iterm2/yui.itermcolors +305 -0
- package/dist/iterm2/yuri.itermcolors +305 -0
- package/dist/kitty/config/alma.conf +4 -0
- package/dist/kitty/config/anko.conf +4 -0
- package/dist/kitty/config/asuka.conf +4 -0
- package/dist/kitty/config/azusa.conf +4 -0
- package/dist/kitty/config/battler.conf +4 -0
- package/dist/kitty/config/beatrice.conf +4 -0
- package/dist/kitty/config/bernkastel.conf +4 -0
- package/dist/kitty/config/bocchi.conf +4 -0
- package/dist/kitty/config/cirno.conf +4 -0
- package/dist/kitty/config/david.conf +4 -0
- package/dist/kitty/config/determination.conf +4 -0
- package/dist/kitty/config/dorothy.conf +4 -0
- package/dist/kitty/config/eva01.conf +4 -0
- package/dist/kitty/config/flandre.conf +4 -0
- package/dist/kitty/config/fox.conf +4 -0
- package/dist/kitty/config/glitch.conf +4 -0
- package/dist/kitty/config/hinamizawa.conf +4 -0
- package/dist/kitty/config/hitagi.conf +4 -0
- package/dist/kitty/config/homura.conf +4 -0
- package/dist/kitty/config/jill.conf +4 -0
- package/dist/kitty/config/joker.conf +4 -0
- package/dist/kitty/config/jupiter.conf +4 -0
- package/dist/kitty/config/kagami.conf +4 -0
- package/dist/kitty/config/kaito.conf +4 -0
- package/dist/kitty/config/kaworu.conf +4 -0
- package/dist/kitty/config/kita.conf +4 -0
- package/dist/kitty/config/konata.conf +4 -0
- package/dist/kitty/config/kou.conf +4 -0
- package/dist/kitty/config/kumori.conf +4 -0
- package/dist/kitty/config/kurisu.conf +4 -0
- package/dist/kitty/config/kyoko.conf +4 -0
- package/dist/kitty/config/kyubey.conf +4 -0
- package/dist/kitty/config/lain.conf +4 -0
- package/dist/kitty/config/lambdadelta.conf +4 -0
- package/dist/kitty/config/len.conf +4 -0
- package/dist/kitty/config/lucy.conf +4 -0
- package/dist/kitty/config/luka.conf +4 -0
- package/dist/kitty/config/madoka.conf +4 -0
- package/dist/kitty/config/magi.conf +4 -0
- package/dist/kitty/config/mami.conf +4 -0
- package/dist/kitty/config/marisa.conf +4 -0
- package/dist/kitty/config/mars.conf +4 -0
- package/dist/kitty/config/mayuri.conf +4 -0
- package/dist/kitty/config/meiko.conf +4 -0
- package/dist/kitty/config/mercury.conf +4 -0
- package/dist/kitty/config/mettaton.conf +4 -0
- package/dist/kitty/config/miku.conf +4 -0
- package/dist/kitty/config/mio.conf +4 -0
- package/dist/kitty/config/mion.conf +4 -0
- package/dist/kitty/config/misato.conf +4 -0
- package/dist/kitty/config/miyuki.conf +4 -0
- package/dist/kitty/config/monika.conf +4 -0
- package/dist/kitty/config/moon.conf +4 -0
- package/dist/kitty/config/mugi.conf +4 -0
- package/dist/kitty/config/nadeko.conf +4 -0
- package/dist/kitty/config/nagisa.conf +4 -0
- package/dist/kitty/config/natsuki.conf +4 -0
- package/dist/kitty/config/nazuna.conf +4 -0
- package/dist/kitty/config/neutral.conf +4 -0
- package/dist/kitty/config/nightcity.conf +4 -0
- package/dist/kitty/config/nijika.conf +4 -0
- package/dist/kitty/config/oracle.conf +4 -0
- package/dist/kitty/config/panther.conf +4 -0
- package/dist/kitty/config/papyrus.conf +4 -0
- package/dist/kitty/config/patchouli.conf +4 -0
- package/dist/kitty/config/queen.conf +4 -0
- package/dist/kitty/config/rebecca.conf +4 -0
- package/dist/kitty/config/rei.conf +4 -0
- package/dist/kitty/config/reimu.conf +4 -0
- package/dist/kitty/config/rena.conf +4 -0
- package/dist/kitty/config/rika.conf +4 -0
- package/dist/kitty/config/rin.conf +4 -0
- package/dist/kitty/config/ritsu.conf +4 -0
- package/dist/kitty/config/rokkenjima.conf +4 -0
- package/dist/kitty/config/ryo.conf +4 -0
- package/dist/kitty/config/sans.conf +4 -0
- package/dist/kitty/config/satoko.conf +4 -0
- package/dist/kitty/config/sayaka.conf +4 -0
- package/dist/kitty/config/sayori.conf +4 -0
- package/dist/kitty/config/sei.conf +4 -0
- package/dist/kitty/config/seri.conf +4 -0
- package/dist/kitty/config/shinobu.conf +4 -0
- package/dist/kitty/config/skull.conf +4 -0
- package/dist/kitty/config/stella.conf +4 -0
- package/dist/kitty/config/suzuha.conf +4 -0
- package/dist/kitty/config/toriel.conf +4 -0
- package/dist/kitty/config/tsubasa.conf +4 -0
- package/dist/kitty/config/tsukasa.conf +4 -0
- package/dist/kitty/config/undyne.conf +4 -0
- package/dist/kitty/config/valhalla.conf +4 -0
- package/dist/kitty/config/velvet.conf +4 -0
- package/dist/kitty/config/venus.conf +4 -0
- package/dist/kitty/config/yofukashi.conf +4 -0
- package/dist/kitty/config/youmu.conf +4 -0
- package/dist/kitty/config/yui.conf +4 -0
- package/dist/kitty/config/yuri.conf +4 -0
- package/dist/kitty/themes/alma.conf +24 -0
- package/dist/kitty/themes/anko.conf +24 -0
- package/dist/kitty/themes/asuka.conf +24 -0
- package/dist/kitty/themes/azusa.conf +24 -0
- package/dist/kitty/themes/battler.conf +24 -0
- package/dist/kitty/themes/beatrice.conf +24 -0
- package/dist/kitty/themes/bernkastel.conf +24 -0
- package/dist/kitty/themes/bocchi.conf +24 -0
- package/dist/kitty/themes/cirno.conf +24 -0
- package/dist/kitty/themes/david.conf +24 -0
- package/dist/kitty/themes/determination.conf +24 -0
- package/dist/kitty/themes/dorothy.conf +24 -0
- package/dist/kitty/themes/eva01.conf +24 -0
- package/dist/kitty/themes/flandre.conf +24 -0
- package/dist/kitty/themes/fox.conf +24 -0
- package/dist/kitty/themes/glitch.conf +24 -0
- package/dist/kitty/themes/hinamizawa.conf +24 -0
- package/dist/kitty/themes/hitagi.conf +24 -0
- package/dist/kitty/themes/homura.conf +24 -0
- package/dist/kitty/themes/jill.conf +24 -0
- package/dist/kitty/themes/joker.conf +24 -0
- package/dist/kitty/themes/jupiter.conf +24 -0
- package/dist/kitty/themes/kagami.conf +24 -0
- package/dist/kitty/themes/kaito.conf +24 -0
- package/dist/kitty/themes/kaworu.conf +24 -0
- package/dist/kitty/themes/kita.conf +24 -0
- package/dist/kitty/themes/konata.conf +24 -0
- package/dist/kitty/themes/kou.conf +24 -0
- package/dist/kitty/themes/kumori.conf +24 -0
- package/dist/kitty/themes/kurisu.conf +24 -0
- package/dist/kitty/themes/kyoko.conf +24 -0
- package/dist/kitty/themes/kyubey.conf +24 -0
- package/dist/kitty/themes/lain.conf +24 -0
- package/dist/kitty/themes/lambdadelta.conf +24 -0
- package/dist/kitty/themes/len.conf +24 -0
- package/dist/kitty/themes/lucy.conf +24 -0
- package/dist/kitty/themes/luka.conf +24 -0
- package/dist/kitty/themes/madoka.conf +24 -0
- package/dist/kitty/themes/magi.conf +24 -0
- package/dist/kitty/themes/mami.conf +24 -0
- package/dist/kitty/themes/marisa.conf +24 -0
- package/dist/kitty/themes/mars.conf +24 -0
- package/dist/kitty/themes/mayuri.conf +24 -0
- package/dist/kitty/themes/meiko.conf +24 -0
- package/dist/kitty/themes/mercury.conf +24 -0
- package/dist/kitty/themes/mettaton.conf +24 -0
- package/dist/kitty/themes/miku.conf +24 -0
- package/dist/kitty/themes/mio.conf +24 -0
- package/dist/kitty/themes/mion.conf +24 -0
- package/dist/kitty/themes/misato.conf +24 -0
- package/dist/kitty/themes/miyuki.conf +24 -0
- package/dist/kitty/themes/monika.conf +24 -0
- package/dist/kitty/themes/moon.conf +24 -0
- package/dist/kitty/themes/mugi.conf +24 -0
- package/dist/kitty/themes/nadeko.conf +24 -0
- package/dist/kitty/themes/nagisa.conf +24 -0
- package/dist/kitty/themes/natsuki.conf +24 -0
- package/dist/kitty/themes/nazuna.conf +24 -0
- package/dist/kitty/themes/neutral.conf +24 -0
- package/dist/kitty/themes/nightcity.conf +24 -0
- package/dist/kitty/themes/nijika.conf +24 -0
- package/dist/kitty/themes/oracle.conf +24 -0
- package/dist/kitty/themes/panther.conf +24 -0
- package/dist/kitty/themes/papyrus.conf +24 -0
- package/dist/kitty/themes/patchouli.conf +24 -0
- package/dist/kitty/themes/queen.conf +24 -0
- package/dist/kitty/themes/rebecca.conf +24 -0
- package/dist/kitty/themes/rei.conf +24 -0
- package/dist/kitty/themes/reimu.conf +24 -0
- package/dist/kitty/themes/rena.conf +24 -0
- package/dist/kitty/themes/rika.conf +24 -0
- package/dist/kitty/themes/rin.conf +24 -0
- package/dist/kitty/themes/ritsu.conf +24 -0
- package/dist/kitty/themes/rokkenjima.conf +24 -0
- package/dist/kitty/themes/ryo.conf +24 -0
- package/dist/kitty/themes/sans.conf +24 -0
- package/dist/kitty/themes/satoko.conf +24 -0
- package/dist/kitty/themes/sayaka.conf +24 -0
- package/dist/kitty/themes/sayori.conf +24 -0
- package/dist/kitty/themes/sei.conf +24 -0
- package/dist/kitty/themes/seri.conf +24 -0
- package/dist/kitty/themes/shinobu.conf +24 -0
- package/dist/kitty/themes/skull.conf +24 -0
- package/dist/kitty/themes/stella.conf +24 -0
- package/dist/kitty/themes/suzuha.conf +24 -0
- package/dist/kitty/themes/toriel.conf +24 -0
- package/dist/kitty/themes/tsubasa.conf +24 -0
- package/dist/kitty/themes/tsukasa.conf +24 -0
- package/dist/kitty/themes/undyne.conf +24 -0
- package/dist/kitty/themes/valhalla.conf +24 -0
- package/dist/kitty/themes/velvet.conf +24 -0
- package/dist/kitty/themes/venus.conf +24 -0
- package/dist/kitty/themes/yofukashi.conf +24 -0
- package/dist/kitty/themes/youmu.conf +24 -0
- package/dist/kitty/themes/yui.conf +24 -0
- package/dist/kitty/themes/yuri.conf +24 -0
- package/dist/shell/palettes.zsh +387 -0
- package/dist/wezterm/colors/alma.toml +15 -0
- package/dist/wezterm/colors/anko.toml +15 -0
- package/dist/wezterm/colors/asuka.toml +15 -0
- package/dist/wezterm/colors/azusa.toml +15 -0
- package/dist/wezterm/colors/battler.toml +15 -0
- package/dist/wezterm/colors/beatrice.toml +15 -0
- package/dist/wezterm/colors/bernkastel.toml +15 -0
- package/dist/wezterm/colors/bocchi.toml +15 -0
- package/dist/wezterm/colors/cirno.toml +15 -0
- package/dist/wezterm/colors/david.toml +15 -0
- package/dist/wezterm/colors/determination.toml +15 -0
- package/dist/wezterm/colors/dorothy.toml +15 -0
- package/dist/wezterm/colors/eva01.toml +15 -0
- package/dist/wezterm/colors/flandre.toml +15 -0
- package/dist/wezterm/colors/fox.toml +15 -0
- package/dist/wezterm/colors/glitch.toml +15 -0
- package/dist/wezterm/colors/hinamizawa.toml +15 -0
- package/dist/wezterm/colors/hitagi.toml +15 -0
- package/dist/wezterm/colors/homura.toml +15 -0
- package/dist/wezterm/colors/jill.toml +15 -0
- package/dist/wezterm/colors/joker.toml +15 -0
- package/dist/wezterm/colors/jupiter.toml +15 -0
- package/dist/wezterm/colors/kagami.toml +15 -0
- package/dist/wezterm/colors/kaito.toml +15 -0
- package/dist/wezterm/colors/kaworu.toml +15 -0
- package/dist/wezterm/colors/kita.toml +15 -0
- package/dist/wezterm/colors/konata.toml +15 -0
- package/dist/wezterm/colors/kou.toml +15 -0
- package/dist/wezterm/colors/kumori.toml +15 -0
- package/dist/wezterm/colors/kurisu.toml +15 -0
- package/dist/wezterm/colors/kyoko.toml +15 -0
- package/dist/wezterm/colors/kyubey.toml +15 -0
- package/dist/wezterm/colors/lain.toml +15 -0
- package/dist/wezterm/colors/lambdadelta.toml +15 -0
- package/dist/wezterm/colors/len.toml +15 -0
- package/dist/wezterm/colors/lucy.toml +15 -0
- package/dist/wezterm/colors/luka.toml +15 -0
- package/dist/wezterm/colors/madoka.toml +15 -0
- package/dist/wezterm/colors/magi.toml +15 -0
- package/dist/wezterm/colors/mami.toml +15 -0
- package/dist/wezterm/colors/marisa.toml +15 -0
- package/dist/wezterm/colors/mars.toml +15 -0
- package/dist/wezterm/colors/mayuri.toml +15 -0
- package/dist/wezterm/colors/meiko.toml +15 -0
- package/dist/wezterm/colors/mercury.toml +15 -0
- package/dist/wezterm/colors/mettaton.toml +15 -0
- package/dist/wezterm/colors/miku.toml +15 -0
- package/dist/wezterm/colors/mio.toml +15 -0
- package/dist/wezterm/colors/mion.toml +15 -0
- package/dist/wezterm/colors/misato.toml +15 -0
- package/dist/wezterm/colors/miyuki.toml +15 -0
- package/dist/wezterm/colors/monika.toml +15 -0
- package/dist/wezterm/colors/moon.toml +15 -0
- package/dist/wezterm/colors/mugi.toml +15 -0
- package/dist/wezterm/colors/nadeko.toml +15 -0
- package/dist/wezterm/colors/nagisa.toml +15 -0
- package/dist/wezterm/colors/natsuki.toml +15 -0
- package/dist/wezterm/colors/nazuna.toml +15 -0
- package/dist/wezterm/colors/neutral.toml +15 -0
- package/dist/wezterm/colors/nightcity.toml +15 -0
- package/dist/wezterm/colors/nijika.toml +15 -0
- package/dist/wezterm/colors/oracle.toml +15 -0
- package/dist/wezterm/colors/panther.toml +15 -0
- package/dist/wezterm/colors/papyrus.toml +15 -0
- package/dist/wezterm/colors/patchouli.toml +15 -0
- package/dist/wezterm/colors/queen.toml +15 -0
- package/dist/wezterm/colors/rebecca.toml +15 -0
- package/dist/wezterm/colors/rei.toml +15 -0
- package/dist/wezterm/colors/reimu.toml +15 -0
- package/dist/wezterm/colors/rena.toml +15 -0
- package/dist/wezterm/colors/rika.toml +15 -0
- package/dist/wezterm/colors/rin.toml +15 -0
- package/dist/wezterm/colors/ritsu.toml +15 -0
- package/dist/wezterm/colors/rokkenjima.toml +15 -0
- package/dist/wezterm/colors/ryo.toml +15 -0
- package/dist/wezterm/colors/sans.toml +15 -0
- package/dist/wezterm/colors/satoko.toml +15 -0
- package/dist/wezterm/colors/sayaka.toml +15 -0
- package/dist/wezterm/colors/sayori.toml +15 -0
- package/dist/wezterm/colors/sei.toml +15 -0
- package/dist/wezterm/colors/seri.toml +15 -0
- package/dist/wezterm/colors/shinobu.toml +15 -0
- package/dist/wezterm/colors/skull.toml +15 -0
- package/dist/wezterm/colors/stella.toml +15 -0
- package/dist/wezterm/colors/suzuha.toml +15 -0
- package/dist/wezterm/colors/toriel.toml +15 -0
- package/dist/wezterm/colors/tsubasa.toml +15 -0
- package/dist/wezterm/colors/tsukasa.toml +15 -0
- package/dist/wezterm/colors/undyne.toml +15 -0
- package/dist/wezterm/colors/valhalla.toml +15 -0
- package/dist/wezterm/colors/velvet.toml +15 -0
- package/dist/wezterm/colors/venus.toml +15 -0
- package/dist/wezterm/colors/yofukashi.toml +15 -0
- package/dist/wezterm/colors/youmu.toml +15 -0
- package/dist/wezterm/colors/yui.toml +15 -0
- package/dist/wezterm/colors/yuri.toml +15 -0
- package/dist/wezterm/config/alma.lua +10 -0
- package/dist/wezterm/config/anko.lua +10 -0
- package/dist/wezterm/config/asuka.lua +10 -0
- package/dist/wezterm/config/azusa.lua +10 -0
- package/dist/wezterm/config/battler.lua +10 -0
- package/dist/wezterm/config/beatrice.lua +10 -0
- package/dist/wezterm/config/bernkastel.lua +10 -0
- package/dist/wezterm/config/bocchi.lua +10 -0
- package/dist/wezterm/config/cirno.lua +10 -0
- package/dist/wezterm/config/david.lua +10 -0
- package/dist/wezterm/config/determination.lua +10 -0
- package/dist/wezterm/config/dorothy.lua +10 -0
- package/dist/wezterm/config/eva01.lua +10 -0
- package/dist/wezterm/config/flandre.lua +10 -0
- package/dist/wezterm/config/fox.lua +10 -0
- package/dist/wezterm/config/glitch.lua +10 -0
- package/dist/wezterm/config/hinamizawa.lua +10 -0
- package/dist/wezterm/config/hitagi.lua +10 -0
- package/dist/wezterm/config/homura.lua +10 -0
- package/dist/wezterm/config/jill.lua +10 -0
- package/dist/wezterm/config/joker.lua +10 -0
- package/dist/wezterm/config/jupiter.lua +10 -0
- package/dist/wezterm/config/kagami.lua +10 -0
- package/dist/wezterm/config/kaito.lua +10 -0
- package/dist/wezterm/config/kaworu.lua +10 -0
- package/dist/wezterm/config/kita.lua +10 -0
- package/dist/wezterm/config/konata.lua +10 -0
- package/dist/wezterm/config/kou.lua +10 -0
- package/dist/wezterm/config/kumori.lua +10 -0
- package/dist/wezterm/config/kurisu.lua +10 -0
- package/dist/wezterm/config/kyoko.lua +10 -0
- package/dist/wezterm/config/kyubey.lua +10 -0
- package/dist/wezterm/config/lain.lua +10 -0
- package/dist/wezterm/config/lambdadelta.lua +10 -0
- package/dist/wezterm/config/len.lua +10 -0
- package/dist/wezterm/config/lucy.lua +10 -0
- package/dist/wezterm/config/luka.lua +10 -0
- package/dist/wezterm/config/madoka.lua +10 -0
- package/dist/wezterm/config/magi.lua +10 -0
- package/dist/wezterm/config/mami.lua +10 -0
- package/dist/wezterm/config/marisa.lua +10 -0
- package/dist/wezterm/config/mars.lua +10 -0
- package/dist/wezterm/config/mayuri.lua +10 -0
- package/dist/wezterm/config/meiko.lua +10 -0
- package/dist/wezterm/config/mercury.lua +10 -0
- package/dist/wezterm/config/mettaton.lua +10 -0
- package/dist/wezterm/config/miku.lua +10 -0
- package/dist/wezterm/config/mio.lua +10 -0
- package/dist/wezterm/config/mion.lua +10 -0
- package/dist/wezterm/config/misato.lua +10 -0
- package/dist/wezterm/config/miyuki.lua +10 -0
- package/dist/wezterm/config/monika.lua +10 -0
- package/dist/wezterm/config/moon.lua +10 -0
- package/dist/wezterm/config/mugi.lua +10 -0
- package/dist/wezterm/config/nadeko.lua +10 -0
- package/dist/wezterm/config/nagisa.lua +10 -0
- package/dist/wezterm/config/natsuki.lua +10 -0
- package/dist/wezterm/config/nazuna.lua +10 -0
- package/dist/wezterm/config/neutral.lua +10 -0
- package/dist/wezterm/config/nightcity.lua +10 -0
- package/dist/wezterm/config/nijika.lua +10 -0
- package/dist/wezterm/config/oracle.lua +10 -0
- package/dist/wezterm/config/panther.lua +10 -0
- package/dist/wezterm/config/papyrus.lua +10 -0
- package/dist/wezterm/config/patchouli.lua +10 -0
- package/dist/wezterm/config/queen.lua +10 -0
- package/dist/wezterm/config/rebecca.lua +10 -0
- package/dist/wezterm/config/rei.lua +10 -0
- package/dist/wezterm/config/reimu.lua +10 -0
- package/dist/wezterm/config/rena.lua +10 -0
- package/dist/wezterm/config/rika.lua +10 -0
- package/dist/wezterm/config/rin.lua +10 -0
- package/dist/wezterm/config/ritsu.lua +10 -0
- package/dist/wezterm/config/rokkenjima.lua +10 -0
- package/dist/wezterm/config/ryo.lua +10 -0
- package/dist/wezterm/config/sans.lua +10 -0
- package/dist/wezterm/config/satoko.lua +10 -0
- package/dist/wezterm/config/sayaka.lua +10 -0
- package/dist/wezterm/config/sayori.lua +10 -0
- package/dist/wezterm/config/sei.lua +10 -0
- package/dist/wezterm/config/seri.lua +10 -0
- package/dist/wezterm/config/shinobu.lua +10 -0
- package/dist/wezterm/config/skull.lua +10 -0
- package/dist/wezterm/config/stella.lua +10 -0
- package/dist/wezterm/config/suzuha.lua +10 -0
- package/dist/wezterm/config/toriel.lua +10 -0
- package/dist/wezterm/config/tsubasa.lua +10 -0
- package/dist/wezterm/config/tsukasa.lua +10 -0
- package/dist/wezterm/config/undyne.lua +10 -0
- package/dist/wezterm/config/valhalla.lua +10 -0
- package/dist/wezterm/config/velvet.lua +10 -0
- package/dist/wezterm/config/venus.lua +10 -0
- package/dist/wezterm/config/yofukashi.lua +10 -0
- package/dist/wezterm/config/youmu.lua +10 -0
- package/dist/wezterm/config/yui.lua +10 -0
- package/dist/wezterm/config/yuri.lua +10 -0
- package/ghostty/shaders/LICENSE +21 -0
- package/ghostty/shaders/README.md +31 -0
- package/ghostty/shaders/cursor_tail.glsl +243 -0
- package/ghostty/shaders/ripple_cursor.glsl +141 -0
- package/package.json +43 -0
- package/shell/adapters/_osc.zsh +35 -0
- package/shell/adapters/kitty.zsh +30 -0
- package/shell/launch-tab.zsh +11 -0
- package/shell/ttheme.zsh +583 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// cursor_tail.glsl — from sahaj-b/ghostty-cursor-shaders (MIT).
|
|
2
|
+
// https://github.com/sahaj-b/ghostty-cursor-shaders
|
|
3
|
+
// See LICENSE in this directory. Local change: DURATION tuned.
|
|
4
|
+
|
|
5
|
+
// sRGB -> Linear conversion (needed because Ghostty passes sRGB values but the shader pipeline operates in linear color space)
|
|
6
|
+
vec3 sRGBToLinear(vec3 c) {
|
|
7
|
+
return mix(c / 12.92, pow((c + 0.055) / 1.055, vec3(2.4)), step(vec3(0.04045), c));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// --- CONFIGURATION ---
|
|
11
|
+
vec4 TRAIL_COLOR = vec4(sRGBToLinear(iCurrentCursorColor.rgb), iCurrentCursorColor.a); // for custom color: vec4(0.2, 0.6, 1.0, 0.5); (wrap in sRGBToLinear for correct brightness)
|
|
12
|
+
const float DURATION = 0.05; // in seconds
|
|
13
|
+
const float MAX_TRAIL_LENGTH = 0.2;
|
|
14
|
+
const float THRESHOLD_MIN_DISTANCE = 1.5; // min distance to show trail (units of cursor width)
|
|
15
|
+
const float BLUR = 2.0; // blur size in pixels (for antialiasing)
|
|
16
|
+
|
|
17
|
+
// --- CONSTANTS for easing functions ---
|
|
18
|
+
const float PI = 3.14159265359;
|
|
19
|
+
const float C1_BACK = 1.70158;
|
|
20
|
+
const float C2_BACK = C1_BACK * 1.525;
|
|
21
|
+
const float C3_BACK = C1_BACK + 1.0;
|
|
22
|
+
const float C4_ELASTIC = (2.0 * PI) / 3.0;
|
|
23
|
+
const float C5_ELASTIC = (2.0 * PI) / 4.5;
|
|
24
|
+
const float SPRING_STIFFNESS = 9.0;
|
|
25
|
+
const float SPRING_DAMPING = 0.9;
|
|
26
|
+
|
|
27
|
+
// --- EASING FUNCTIONS ---
|
|
28
|
+
|
|
29
|
+
// // Linear
|
|
30
|
+
// float ease(float x) {
|
|
31
|
+
// return x;
|
|
32
|
+
// }
|
|
33
|
+
|
|
34
|
+
// // EaseOutQuad
|
|
35
|
+
// float ease(float x) {
|
|
36
|
+
// return 1.0 - (1.0 - x) * (1.0 - x);
|
|
37
|
+
// }
|
|
38
|
+
|
|
39
|
+
// // EaseOutCubic
|
|
40
|
+
// float ease(float x) {
|
|
41
|
+
// return 1.0 - pow(1.0 - x, 3.0);
|
|
42
|
+
// }
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
// // EaseOutQuart
|
|
46
|
+
// float ease(float x) {
|
|
47
|
+
// return 1.0 - pow(1.0 - x, 4.0);
|
|
48
|
+
// }
|
|
49
|
+
|
|
50
|
+
// // EaseOutQuint
|
|
51
|
+
// float ease(float x) {
|
|
52
|
+
// return 1.0 - pow(1.0 - x, 5.0);
|
|
53
|
+
// }
|
|
54
|
+
|
|
55
|
+
// // EaseOutSine
|
|
56
|
+
// float ease(float x) {
|
|
57
|
+
// return sin((x * PI) / 2.0);
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// // EaseOutExpo
|
|
61
|
+
// float ease(float x) {
|
|
62
|
+
// return x == 1.0 ? 1.0 : 1.0 - pow(2.0, -10.0 * x);
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// EaseOutCirc
|
|
66
|
+
float ease(float x) {
|
|
67
|
+
return sqrt(1.0 - pow(x - 1.0, 2.0));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// // EaseOutBack
|
|
71
|
+
// float ease(float x) {
|
|
72
|
+
// return 1.0 + C3_BACK * pow(x - 1.0, 3.0) + C1_BACK * pow(x - 1.0, 2.0);
|
|
73
|
+
// }
|
|
74
|
+
|
|
75
|
+
// // EaseOutElastic
|
|
76
|
+
// float ease(float x) {
|
|
77
|
+
// return x == 0.0 ? 0.0
|
|
78
|
+
// : x == 1.0 ? 1.0
|
|
79
|
+
// : pow(2.0, -10.0 * x) * sin((x * 10.0 - 0.75) * C4_ELASTIC) + 1.0;
|
|
80
|
+
// }
|
|
81
|
+
|
|
82
|
+
// Parametric Spring
|
|
83
|
+
// float ease(float x) {
|
|
84
|
+
// x = clamp(x, 0.0, 1.0);
|
|
85
|
+
// float decay = exp(-SPRING_DAMPING * SPRING_STIFFNESS * x);
|
|
86
|
+
// float freq = sqrt(SPRING_STIFFNESS * (1.0 - SPRING_DAMPING * SPRING_DAMPING));
|
|
87
|
+
// float osc = cos(freq * 6.283185 * x) + (SPRING_DAMPING * sqrt(SPRING_STIFFNESS) / freq) * sin(freq * 6.283185 * x);
|
|
88
|
+
// return 1.0 - decay * osc;
|
|
89
|
+
// }
|
|
90
|
+
|
|
91
|
+
float getSdfRectangle(in vec2 p, in vec2 xy, in vec2 b)
|
|
92
|
+
{
|
|
93
|
+
vec2 d = abs(p - xy) - b;
|
|
94
|
+
return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Based on Inigo Quilez's 2D distance functions article: https://iquilezles.org/articles/distfunctions2d/
|
|
98
|
+
// Potencially optimized by eliminating conditionals and loops to enhance performance and reduce branching
|
|
99
|
+
|
|
100
|
+
float seg(in vec2 p, in vec2 a, in vec2 b, inout float s, float d) {
|
|
101
|
+
vec2 e = b - a;
|
|
102
|
+
vec2 w = p - a;
|
|
103
|
+
vec2 proj = a + e * clamp(dot(w, e) / dot(e, e), 0.0, 1.0);
|
|
104
|
+
float segd = dot(p - proj, p - proj);
|
|
105
|
+
d = min(d, segd);
|
|
106
|
+
|
|
107
|
+
float c0 = step(0.0, p.y - a.y);
|
|
108
|
+
float c1 = 1.0 - step(0.0, p.y - b.y);
|
|
109
|
+
float c2 = 1.0 - step(0.0, e.x * w.y - e.y * w.x);
|
|
110
|
+
float allCond = c0 * c1 * c2;
|
|
111
|
+
float noneCond = (1.0 - c0) * (1.0 - c1) * (1.0 - c2);
|
|
112
|
+
float flip = mix(1.0, -1.0, step(0.5, allCond + noneCond));
|
|
113
|
+
s *= flip;
|
|
114
|
+
return d;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
float getSdfParallelogram(in vec2 p, in vec2 v0, in vec2 v1, in vec2 v2, in vec2 v3) {
|
|
118
|
+
float s = 1.0;
|
|
119
|
+
float d = dot(p - v0, p - v0);
|
|
120
|
+
|
|
121
|
+
d = seg(p, v0, v3, s, d);
|
|
122
|
+
d = seg(p, v1, v0, s, d);
|
|
123
|
+
d = seg(p, v2, v1, s, d);
|
|
124
|
+
d = seg(p, v3, v2, s, d);
|
|
125
|
+
|
|
126
|
+
return s * sqrt(d);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
vec2 normalize(vec2 value, float isPosition) {
|
|
130
|
+
return (value * 2.0 - (iResolution.xy * isPosition)) / iResolution.y;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
float antialising(float distance) {
|
|
134
|
+
return 1. - smoothstep(0., normalize(vec2(BLUR, BLUR), 0.).x, distance);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
float determineIfTopRightIsLeading(vec2 a, vec2 b) {
|
|
138
|
+
float condition1 = step(b.x, a.x) * step(a.y, b.y); // a.x < b.x && a.y > b.y
|
|
139
|
+
float condition2 = step(a.x, b.x) * step(b.y, a.y); // a.x > b.x && a.y < b.y
|
|
140
|
+
|
|
141
|
+
// if neither condition is met, return 1 (else case)
|
|
142
|
+
return 1.0 - max(condition1, condition2);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
vec2 getRectangleCenter(vec4 rectangle) {
|
|
146
|
+
return vec2(rectangle.x + (rectangle.z / 2.), rectangle.y - (rectangle.w / 2.));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
void mainImage(out vec4 fragColor, in vec2 fragCoord){
|
|
151
|
+
#if !defined(WEB)
|
|
152
|
+
fragColor = texture(iChannel0, fragCoord.xy / iResolution.xy);
|
|
153
|
+
#endif
|
|
154
|
+
|
|
155
|
+
// normalization & setup(-1, 1 coords)
|
|
156
|
+
vec2 vu = normalize(fragCoord, 1.);
|
|
157
|
+
vec2 offsetFactor = vec2(-.5, 0.5);
|
|
158
|
+
|
|
159
|
+
vec4 currentCursor = vec4(normalize(iCurrentCursor.xy, 1.), normalize(iCurrentCursor.zw, 0.));
|
|
160
|
+
vec4 previousCursor = vec4(normalize(iPreviousCursor.xy, 1.), normalize(iPreviousCursor.zw, 0.));
|
|
161
|
+
|
|
162
|
+
vec2 centerCC = currentCursor.xy - (currentCursor.zw * offsetFactor);
|
|
163
|
+
vec2 centerCP = previousCursor.xy - (previousCursor.zw * offsetFactor);
|
|
164
|
+
|
|
165
|
+
vec2 delta = centerCP - centerCC;
|
|
166
|
+
float lineLength = length(delta);
|
|
167
|
+
|
|
168
|
+
float sdfCurrentCursor = getSdfRectangle(vu, centerCC, currentCursor.zw * 0.5);
|
|
169
|
+
|
|
170
|
+
vec4 newColor = vec4(fragColor);
|
|
171
|
+
|
|
172
|
+
float minDist = currentCursor.w * THRESHOLD_MIN_DISTANCE;
|
|
173
|
+
float progress = clamp((iTime - iTimeCursorChange) / DURATION, 0.0, 1.0);
|
|
174
|
+
if (lineLength > minDist) {
|
|
175
|
+
// ANIMATION logic
|
|
176
|
+
|
|
177
|
+
float head_eased = 0.0;
|
|
178
|
+
float tail_eased = 0.0;
|
|
179
|
+
|
|
180
|
+
float tail_delay_factor = MAX_TRAIL_LENGTH / lineLength;
|
|
181
|
+
|
|
182
|
+
float isLongMove = step(MAX_TRAIL_LENGTH, lineLength);
|
|
183
|
+
|
|
184
|
+
float head_eased_short = ease(progress);
|
|
185
|
+
float tail_eased_short = ease(smoothstep(tail_delay_factor, 1.0, progress));
|
|
186
|
+
float head_eased_long = 1.0;
|
|
187
|
+
float tail_eased_long = ease(progress);
|
|
188
|
+
|
|
189
|
+
head_eased = mix(head_eased_long, head_eased_short, isLongMove);
|
|
190
|
+
tail_eased = mix(tail_eased_long, tail_eased_short, isLongMove);
|
|
191
|
+
|
|
192
|
+
// detect straight moves
|
|
193
|
+
vec2 delta_abs = abs(centerCC - centerCP);
|
|
194
|
+
float threshold = 0.001;
|
|
195
|
+
float isHorizontal = step(delta_abs.y, threshold);
|
|
196
|
+
float isVertical = step(delta_abs.x, threshold);
|
|
197
|
+
float isStraightMove = max(isHorizontal, isVertical);
|
|
198
|
+
|
|
199
|
+
// -- Making the parallelogram sdf (diagonal move) --
|
|
200
|
+
|
|
201
|
+
// animate the TOP-LEFT corners
|
|
202
|
+
vec2 head_pos_tl = mix(previousCursor.xy, currentCursor.xy, head_eased);
|
|
203
|
+
vec2 tail_pos_tl = mix(previousCursor.xy, currentCursor.xy, tail_eased);
|
|
204
|
+
|
|
205
|
+
float isTopRightLeading = determineIfTopRightIsLeading(currentCursor.xy, previousCursor.xy);
|
|
206
|
+
float isBottomLeftLeading = 1.0 - isTopRightLeading;
|
|
207
|
+
|
|
208
|
+
// v0, v1 : "front" of the trail (head)
|
|
209
|
+
vec2 v0 = vec2(head_pos_tl.x + currentCursor.z * isTopRightLeading, head_pos_tl.y - currentCursor.w);
|
|
210
|
+
vec2 v1 = vec2(head_pos_tl.x + currentCursor.z * isBottomLeftLeading, head_pos_tl.y);
|
|
211
|
+
|
|
212
|
+
// v2, v3: "back" of the trail (tail)
|
|
213
|
+
vec2 v2 = vec2(tail_pos_tl.x + currentCursor.z * isBottomLeftLeading, tail_pos_tl.y);
|
|
214
|
+
vec2 v3 = vec2(tail_pos_tl.x + currentCursor.z * isTopRightLeading, tail_pos_tl.y - previousCursor.w);
|
|
215
|
+
|
|
216
|
+
float sdfTrail_diag = getSdfParallelogram(vu, v0, v1, v2, v3);
|
|
217
|
+
|
|
218
|
+
// -- Making the rectangle sdf (straight move) --
|
|
219
|
+
|
|
220
|
+
vec2 head_center = mix(centerCP, centerCC, head_eased);
|
|
221
|
+
vec2 tail_center = mix(centerCP, centerCC, tail_eased);
|
|
222
|
+
|
|
223
|
+
vec2 min_center = min(head_center, tail_center);
|
|
224
|
+
vec2 max_center = max(head_center, tail_center);
|
|
225
|
+
|
|
226
|
+
vec2 box_size = (max_center - min_center) + currentCursor.zw;
|
|
227
|
+
vec2 box_center = (min_center + max_center) * 0.5;
|
|
228
|
+
|
|
229
|
+
float sdfTrail_rect = getSdfRectangle(vu, box_center, box_size * 0.5);
|
|
230
|
+
|
|
231
|
+
// -- FINAL SELECTING AND DRAWING --
|
|
232
|
+
float sdfTrail = mix(sdfTrail_diag, sdfTrail_rect, isStraightMove);
|
|
233
|
+
|
|
234
|
+
vec4 trail = TRAIL_COLOR;
|
|
235
|
+
float trailAlpha = antialising(sdfTrail);
|
|
236
|
+
newColor = mix(newColor, trail, trailAlpha);
|
|
237
|
+
|
|
238
|
+
// punch hole
|
|
239
|
+
newColor = mix(newColor, fragColor, step(sdfCurrentCursor, 0.));
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
fragColor = newColor;
|
|
243
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// ripple_cursor.glsl — from sahaj-b/ghostty-cursor-shaders (MIT).
|
|
2
|
+
// https://github.com/sahaj-b/ghostty-cursor-shaders
|
|
3
|
+
// See LICENSE in this directory. Local change: COLOR follows the theme cursor.
|
|
4
|
+
|
|
5
|
+
// sRGB -> Linear conversion (needed because Ghostty passes sRGB values but the shader pipeline operates in linear color space)
|
|
6
|
+
vec3 sRGBToLinear(vec3 c) {
|
|
7
|
+
return mix(c / 12.92, pow((c + 0.055) / 1.055, vec3(2.4)), step(vec3(0.04045), c));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// CONFIGURATION
|
|
11
|
+
const float DURATION = 0.15; // How long the ripple animates (seconds)
|
|
12
|
+
const float MAX_RADIUS = 0.05; // Max radius in normalized coords (0.5 = 1/4 screen height)
|
|
13
|
+
const float RING_THICKNESS = 0.02; // Ring width in normalized coords
|
|
14
|
+
const float CURSOR_WIDTH_CHANGE_THRESHOLD = 0.5; // Triggers ripple if cursor width changes by this fraction
|
|
15
|
+
vec4 COLOR = vec4(sRGBToLinear(iCurrentCursorColor.rgb), 1.0); // for custom color: vec4(0.35, 0.36, 0.44, 1.0)
|
|
16
|
+
const float BLUR = 3.0; // Blur level in pixels
|
|
17
|
+
const float ANIMATION_START_OFFSET = 0.0; // Start the ripple slightly progressed (0.0 - 1.0)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// Easing functions
|
|
21
|
+
float easeOutQuad(float t) {
|
|
22
|
+
return 1.0 - (1.0 - t) * (1.0 - t);
|
|
23
|
+
}
|
|
24
|
+
float easeInOutQuad(float t) {
|
|
25
|
+
return t < 0.5 ? 2.0 * t * t : 1.0 - pow(-2.0 * t + 2.0, 2.0) / 2.0;
|
|
26
|
+
}
|
|
27
|
+
float easeOutCubic(float t) {
|
|
28
|
+
return 1.0 - pow(1.0 - t, 3.0);
|
|
29
|
+
}
|
|
30
|
+
float easeOutQuart(float t) {
|
|
31
|
+
return 1.0 - pow(1.0 - t, 4.0);
|
|
32
|
+
}
|
|
33
|
+
float easeOutQuint(float t) {
|
|
34
|
+
return 1.0 - pow(1.0 - t, 5.0);
|
|
35
|
+
}
|
|
36
|
+
float easeOutExpo(float t) {
|
|
37
|
+
return t == 1.0 ? 1.0 : 1.0 - pow(2.0, -10.0 * t);
|
|
38
|
+
}
|
|
39
|
+
float easeOutCirc(float t) {
|
|
40
|
+
return sqrt(1.0 - pow(t - 1.0, 2.0));
|
|
41
|
+
}
|
|
42
|
+
float easeOutSine(float t) {
|
|
43
|
+
return sin((t * 3.1415916) / 2.0);
|
|
44
|
+
}
|
|
45
|
+
float easeOutElastic(float t) {
|
|
46
|
+
const float c4 = (2.0 * 3.1415916) / 3.0;
|
|
47
|
+
return t == 0.0 ? 0.0 : t == 1.0 ? 1.0 : pow(2.0, -10.0 * t) * sin((t * 10.0 - 0.75) * c4) + 1.0;
|
|
48
|
+
}
|
|
49
|
+
float easeOutBounce(float t) {
|
|
50
|
+
const float n1 = 7.5625;
|
|
51
|
+
const float d1 = 2.75;
|
|
52
|
+
if (t < 1.0 / d1) {
|
|
53
|
+
return n1 * t * t;
|
|
54
|
+
} else if (t < 2.0 / d1) {
|
|
55
|
+
return n1 * (t -= 1.5 / d1) * t + 0.75;
|
|
56
|
+
} else if (t < 2.5 / d1) {
|
|
57
|
+
return n1 * (t -= 2.25 / d1) * t + 0.9375;
|
|
58
|
+
} else {
|
|
59
|
+
return n1 * (t -= 2.625 / d1) * t + 0.984375;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
float easeOutBack(float t) {
|
|
63
|
+
const float c1 = 1.70158;
|
|
64
|
+
const float c3 = c1 + 1.0;
|
|
65
|
+
return 1.0 + c3 * pow(t - 1.0, 3.0) + c1 * pow(t - 1.0, 2.0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Pulse fade functions
|
|
69
|
+
float easeOutPulse(float t) {
|
|
70
|
+
return t * (2.0 - t);
|
|
71
|
+
}
|
|
72
|
+
float exponentialDecayPulse(float t) {
|
|
73
|
+
return exp(-3.0 * t) * sin(t * 3.1415916);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
vec2 normalize(vec2 value, float isPosition) {
|
|
77
|
+
return (value * 2.0 - (iResolution.xy * isPosition)) / iResolution.y;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
void mainImage(out vec4 fragColor, in vec2 fragCoord){
|
|
81
|
+
#if !defined(WEB)
|
|
82
|
+
fragColor = texture(iChannel0, fragCoord.xy / iResolution.xy);
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
// Normalization & setup (-1 to 1 coords)
|
|
86
|
+
vec2 vu = normalize(fragCoord, 1.);
|
|
87
|
+
vec2 offsetFactor = vec2(-.5, 0.5);
|
|
88
|
+
|
|
89
|
+
vec4 currentCursor = vec4(normalize(iCurrentCursor.xy, 1.), normalize(iCurrentCursor.zw, 0.));
|
|
90
|
+
vec4 previousCursor = vec4(normalize(iPreviousCursor.xy, 1.), normalize(iPreviousCursor.zw, 0.));
|
|
91
|
+
|
|
92
|
+
vec2 centerCC = currentCursor.xy - (currentCursor.zw * offsetFactor);
|
|
93
|
+
|
|
94
|
+
float cellWidth = max(currentCursor.z, previousCursor.z); // width of the 'block' cursor
|
|
95
|
+
|
|
96
|
+
// check for significant width change
|
|
97
|
+
float widthChange = abs(currentCursor.z - previousCursor.z);
|
|
98
|
+
float widthThresholdNorm = cellWidth * CURSOR_WIDTH_CHANGE_THRESHOLD;
|
|
99
|
+
float isModeChange = step(widthThresholdNorm, widthChange);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
// ANIMATION
|
|
103
|
+
float rippleProgress = (iTime - iTimeCursorChange) / DURATION + ANIMATION_START_OFFSET;
|
|
104
|
+
// don't clamp yet; we need to know if it's > 1.0 (finished)
|
|
105
|
+
float isAnimating = 1.0 - step(1.0, rippleProgress); // progress < 1.0 ? 1.0: 0.0
|
|
106
|
+
|
|
107
|
+
if (isModeChange > 0.0 && isAnimating > 0.0) {
|
|
108
|
+
// Apply easing to progress
|
|
109
|
+
// float easedProgress = rippleProgress;
|
|
110
|
+
// float easedProgress = easeOutQuad(rippleProgress);
|
|
111
|
+
// float easedProgress = easeInOutQuad(rippleProgress);
|
|
112
|
+
// float easedProgress = easeOutCubic(rippleProgress);
|
|
113
|
+
// float easedProgress = easeOutQuart(rippleProgress);
|
|
114
|
+
// float easedProgress = easeOutQuint(rippleProgress);
|
|
115
|
+
// float easedProgress = easeOutExpo(rippleProgress);
|
|
116
|
+
float easedProgress = easeOutCirc(rippleProgress);
|
|
117
|
+
// float easedProgress = easeOutSine(rippleProgress);
|
|
118
|
+
// float easedProgress = easeOutBack(rippleProgress);
|
|
119
|
+
|
|
120
|
+
// RIPPLE CALCULATION
|
|
121
|
+
float rippleRadius = easedProgress * MAX_RADIUS;
|
|
122
|
+
|
|
123
|
+
// float fade = 1.0; // no fade
|
|
124
|
+
// float fade = 1.0 - easedProgress; // linear fade
|
|
125
|
+
float fade = 1.0 - easeOutPulse(rippleProgress);
|
|
126
|
+
// float fade = 1.0 - exponentialDecayPulse(rippleProgress);
|
|
127
|
+
|
|
128
|
+
// Calculate distance from frag to cursor center
|
|
129
|
+
float dist = distance(vu, centerCC);
|
|
130
|
+
|
|
131
|
+
float sdfRing = abs(dist - rippleRadius) - RING_THICKNESS * 0.5;
|
|
132
|
+
|
|
133
|
+
// Antialias (1-pixel width in normalized coords)
|
|
134
|
+
float antiAliasSize = normalize(vec2(BLUR, BLUR), 0.0).x;
|
|
135
|
+
float ripple = (1.0 - smoothstep(-antiAliasSize, antiAliasSize, sdfRing)) * fade;
|
|
136
|
+
|
|
137
|
+
// Apply ripple effect
|
|
138
|
+
fragColor = mix(fragColor, COLOR, ripple * COLOR.a);
|
|
139
|
+
}
|
|
140
|
+
// else: do nothing, keep original fragColor
|
|
141
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kecan0406/ttheme",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ttheme": "bin/ttheme.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin",
|
|
10
|
+
"dist",
|
|
11
|
+
"shell",
|
|
12
|
+
"ghostty/shaders"
|
|
13
|
+
],
|
|
14
|
+
"description": "Character terminal palettes for ghostty, kitty, alacritty, wezterm and iTerm2",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "kecan0406",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/kecan0406/ttheme.git"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/kecan0406/ttheme#readme",
|
|
22
|
+
"bugs": "https://github.com/kecan0406/ttheme/issues",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"terminal",
|
|
25
|
+
"theme",
|
|
26
|
+
"ghostty",
|
|
27
|
+
"kitty",
|
|
28
|
+
"alacritty",
|
|
29
|
+
"wezterm",
|
|
30
|
+
"iterm2"
|
|
31
|
+
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@biomejs/biome": "^2.3.0",
|
|
34
|
+
"@clack/prompts": "^1.7.0",
|
|
35
|
+
"@types/bun": "^1.3.0",
|
|
36
|
+
"commander": "^15.0.0",
|
|
37
|
+
"typescript": "^5.8.2"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"bun": ">=1.3",
|
|
41
|
+
"node": ">=20.11"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
__tt_osc_apply() {
|
|
2
|
+
local -a p=(${=1})
|
|
3
|
+
(( ${#p} >= 20 )) || return 1
|
|
4
|
+
|
|
5
|
+
[[ $p[1] != - ]] && printf '\033]11;%s\033\\' "$p[1]"
|
|
6
|
+
printf '\033]10;%s\033\\\033]12;%s\033\\\033]17;%s\033\\' "$p[2]" "$p[3]" "$p[4]"
|
|
7
|
+
|
|
8
|
+
local osc4="" i
|
|
9
|
+
for i in {0..15}; do osc4+=";$i;$p[i+5]"; done
|
|
10
|
+
printf '\033]4%s\033\\' "$osc4"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
__tt_apply() { __tt_osc_apply "$@" }
|
|
14
|
+
|
|
15
|
+
__tt_query_bg() {
|
|
16
|
+
local saved resp fd
|
|
17
|
+
exec {fd}<>/dev/tty 2>/dev/null || return 1
|
|
18
|
+
|
|
19
|
+
saved=$(stty -g <&$fd 2>/dev/null)
|
|
20
|
+
if [[ -z $saved ]]; then
|
|
21
|
+
exec {fd}>&-
|
|
22
|
+
return 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
stty raw -echo min 0 time 3 <&$fd 2>/dev/null
|
|
26
|
+
printf '\033]11;?\033\\' >&$fd
|
|
27
|
+
IFS= read -r -k 40 -u $fd resp 2>/dev/null
|
|
28
|
+
stty "$saved" <&$fd 2>/dev/null
|
|
29
|
+
exec {fd}>&-
|
|
30
|
+
|
|
31
|
+
[[ $resp == *rgb:* ]] || return 1
|
|
32
|
+
local -a parts=(${(s:/:)${resp#*rgb:}})
|
|
33
|
+
(( ${#parts} >= 3 )) || return 1
|
|
34
|
+
printf '#%s%s%s' "${parts[1]:0:2}" "${parts[2]:0:2}" "${parts[3]:0:2}"
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
if (( $+commands[kitten] )); then
|
|
2
|
+
__tt_kitty() { kitten @ "$@" }
|
|
3
|
+
elif (( $+commands[kitty] )); then
|
|
4
|
+
__tt_kitty() { kitty @ "$@" }
|
|
5
|
+
else
|
|
6
|
+
__tt_kitty() { return 1 }
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
__tt_kitty_args() {
|
|
10
|
+
local -a p=(${=1})
|
|
11
|
+
(( ${#p} >= 20 )) || return 1
|
|
12
|
+
reply=(
|
|
13
|
+
foreground=$p[2]
|
|
14
|
+
cursor=$p[3]
|
|
15
|
+
cursor_text_color=$p[1]
|
|
16
|
+
selection_background=$p[4]
|
|
17
|
+
selection_foreground=$p[2]
|
|
18
|
+
)
|
|
19
|
+
[[ $p[1] != - ]] && reply+=(background=$p[1])
|
|
20
|
+
local i
|
|
21
|
+
for i in {0..15}; do reply+=("color$i=$p[i+5]"); done
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
__tt_apply() {
|
|
25
|
+
local -a reply
|
|
26
|
+
__tt_kitty_args "$1" || return 1
|
|
27
|
+
__tt_kitty set-colors -- "${reply[@]}" 2>/dev/null && return 0
|
|
28
|
+
|
|
29
|
+
__tt_osc_apply "$1"
|
|
30
|
+
}
|