@kecan0406/ttheme 0.1.5 → 1.0.1

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.
Files changed (875) hide show
  1. package/LICENSE +0 -9
  2. package/README.md +58 -19
  3. package/bin/ttheme.js +129 -12689
  4. package/dist/manifest.json +1 -1
  5. package/package.json +3 -3
  6. package/shell/adapters/_bg.zsh +521 -0
  7. package/shell/adapters/_osc.zsh +4 -0
  8. package/shell/adapters/ghostty.zsh +15 -497
  9. package/shell/adapters/iterm2.zsh +67 -0
  10. package/shell/ttheme.zsh +121 -23
  11. package/dist/alacritty/config/alma.toml +0 -8
  12. package/dist/alacritty/config/anko.toml +0 -8
  13. package/dist/alacritty/config/asuka.toml +0 -8
  14. package/dist/alacritty/config/azusa.toml +0 -8
  15. package/dist/alacritty/config/battler.toml +0 -8
  16. package/dist/alacritty/config/beatrice.toml +0 -8
  17. package/dist/alacritty/config/bernkastel.toml +0 -8
  18. package/dist/alacritty/config/bocchi.toml +0 -8
  19. package/dist/alacritty/config/cirno.toml +0 -8
  20. package/dist/alacritty/config/david.toml +0 -8
  21. package/dist/alacritty/config/dekomori.toml +0 -8
  22. package/dist/alacritty/config/determination.toml +0 -8
  23. package/dist/alacritty/config/dorothy.toml +0 -8
  24. package/dist/alacritty/config/eva01.toml +0 -8
  25. package/dist/alacritty/config/flandre.toml +0 -8
  26. package/dist/alacritty/config/fox.toml +0 -8
  27. package/dist/alacritty/config/geto.toml +0 -8
  28. package/dist/alacritty/config/glitch.toml +0 -8
  29. package/dist/alacritty/config/gojo.toml +0 -8
  30. package/dist/alacritty/config/hinamizawa.toml +0 -8
  31. package/dist/alacritty/config/hitagi.toml +0 -8
  32. package/dist/alacritty/config/homura.toml +0 -8
  33. package/dist/alacritty/config/jill.toml +0 -8
  34. package/dist/alacritty/config/joker.toml +0 -8
  35. package/dist/alacritty/config/jupiter.toml +0 -8
  36. package/dist/alacritty/config/kagami.toml +0 -8
  37. package/dist/alacritty/config/kaito.toml +0 -8
  38. package/dist/alacritty/config/kaworu.toml +0 -8
  39. package/dist/alacritty/config/kita.toml +0 -8
  40. package/dist/alacritty/config/konata.toml +0 -8
  41. package/dist/alacritty/config/kou.toml +0 -8
  42. package/dist/alacritty/config/kumin.toml +0 -8
  43. package/dist/alacritty/config/kumori.toml +0 -8
  44. package/dist/alacritty/config/kurisu.toml +0 -8
  45. package/dist/alacritty/config/kyoko.toml +0 -8
  46. package/dist/alacritty/config/kyubey.toml +0 -8
  47. package/dist/alacritty/config/lain.toml +0 -8
  48. package/dist/alacritty/config/lambdadelta.toml +0 -8
  49. package/dist/alacritty/config/len.toml +0 -8
  50. package/dist/alacritty/config/lucy.toml +0 -8
  51. package/dist/alacritty/config/luka.toml +0 -8
  52. package/dist/alacritty/config/madoka.toml +0 -8
  53. package/dist/alacritty/config/magi.toml +0 -8
  54. package/dist/alacritty/config/mami.toml +0 -8
  55. package/dist/alacritty/config/marisa.toml +0 -8
  56. package/dist/alacritty/config/mars.toml +0 -8
  57. package/dist/alacritty/config/mayuri.toml +0 -8
  58. package/dist/alacritty/config/megumi.toml +0 -8
  59. package/dist/alacritty/config/meiko.toml +0 -8
  60. package/dist/alacritty/config/mercury.toml +0 -8
  61. package/dist/alacritty/config/mettaton.toml +0 -8
  62. package/dist/alacritty/config/miku.toml +0 -8
  63. package/dist/alacritty/config/mio.toml +0 -8
  64. package/dist/alacritty/config/mion.toml +0 -8
  65. package/dist/alacritty/config/misato.toml +0 -8
  66. package/dist/alacritty/config/miyuki.toml +0 -8
  67. package/dist/alacritty/config/monika.toml +0 -8
  68. package/dist/alacritty/config/moon.toml +0 -8
  69. package/dist/alacritty/config/mugi.toml +0 -8
  70. package/dist/alacritty/config/nadeko.toml +0 -8
  71. package/dist/alacritty/config/nagisa.toml +0 -8
  72. package/dist/alacritty/config/nanami.toml +0 -8
  73. package/dist/alacritty/config/natsuki.toml +0 -8
  74. package/dist/alacritty/config/nazuna.toml +0 -8
  75. package/dist/alacritty/config/neutral.toml +0 -8
  76. package/dist/alacritty/config/nightcity.toml +0 -8
  77. package/dist/alacritty/config/nijika.toml +0 -8
  78. package/dist/alacritty/config/nobara.toml +0 -8
  79. package/dist/alacritty/config/oracle.toml +0 -8
  80. package/dist/alacritty/config/panther.toml +0 -8
  81. package/dist/alacritty/config/papyrus.toml +0 -8
  82. package/dist/alacritty/config/patchouli.toml +0 -8
  83. package/dist/alacritty/config/queen.toml +0 -8
  84. package/dist/alacritty/config/rebecca.toml +0 -8
  85. package/dist/alacritty/config/rei.toml +0 -8
  86. package/dist/alacritty/config/reimu.toml +0 -8
  87. package/dist/alacritty/config/rena.toml +0 -8
  88. package/dist/alacritty/config/rika.toml +0 -8
  89. package/dist/alacritty/config/rikka.toml +0 -8
  90. package/dist/alacritty/config/rin.toml +0 -8
  91. package/dist/alacritty/config/ritsu.toml +0 -8
  92. package/dist/alacritty/config/rokkenjima.toml +0 -8
  93. package/dist/alacritty/config/ryo.toml +0 -8
  94. package/dist/alacritty/config/sans.toml +0 -8
  95. package/dist/alacritty/config/satoko.toml +0 -8
  96. package/dist/alacritty/config/sayaka.toml +0 -8
  97. package/dist/alacritty/config/sayori.toml +0 -8
  98. package/dist/alacritty/config/sei.toml +0 -8
  99. package/dist/alacritty/config/seri.toml +0 -8
  100. package/dist/alacritty/config/shinka.toml +0 -8
  101. package/dist/alacritty/config/shinobu.toml +0 -8
  102. package/dist/alacritty/config/skull.toml +0 -8
  103. package/dist/alacritty/config/stella.toml +0 -8
  104. package/dist/alacritty/config/sukuna.toml +0 -8
  105. package/dist/alacritty/config/suzuha.toml +0 -8
  106. package/dist/alacritty/config/toriel.toml +0 -8
  107. package/dist/alacritty/config/tsubasa.toml +0 -8
  108. package/dist/alacritty/config/tsukasa.toml +0 -8
  109. package/dist/alacritty/config/undyne.toml +0 -8
  110. package/dist/alacritty/config/valhalla.toml +0 -8
  111. package/dist/alacritty/config/velvet.toml +0 -8
  112. package/dist/alacritty/config/venus.toml +0 -8
  113. package/dist/alacritty/config/yofukashi.toml +0 -8
  114. package/dist/alacritty/config/youmu.toml +0 -8
  115. package/dist/alacritty/config/yui.toml +0 -8
  116. package/dist/alacritty/config/yuji.toml +0 -8
  117. package/dist/alacritty/config/yuri.toml +0 -8
  118. package/dist/alacritty/config/yuuta.toml +0 -8
  119. package/dist/alacritty/themes/alma.toml +0 -34
  120. package/dist/alacritty/themes/anko.toml +0 -34
  121. package/dist/alacritty/themes/asuka.toml +0 -34
  122. package/dist/alacritty/themes/azusa.toml +0 -34
  123. package/dist/alacritty/themes/battler.toml +0 -34
  124. package/dist/alacritty/themes/beatrice.toml +0 -34
  125. package/dist/alacritty/themes/bernkastel.toml +0 -34
  126. package/dist/alacritty/themes/bocchi.toml +0 -34
  127. package/dist/alacritty/themes/cirno.toml +0 -34
  128. package/dist/alacritty/themes/david.toml +0 -34
  129. package/dist/alacritty/themes/dekomori.toml +0 -34
  130. package/dist/alacritty/themes/determination.toml +0 -34
  131. package/dist/alacritty/themes/dorothy.toml +0 -34
  132. package/dist/alacritty/themes/eva01.toml +0 -34
  133. package/dist/alacritty/themes/flandre.toml +0 -34
  134. package/dist/alacritty/themes/fox.toml +0 -34
  135. package/dist/alacritty/themes/geto.toml +0 -34
  136. package/dist/alacritty/themes/glitch.toml +0 -34
  137. package/dist/alacritty/themes/gojo.toml +0 -34
  138. package/dist/alacritty/themes/hinamizawa.toml +0 -34
  139. package/dist/alacritty/themes/hitagi.toml +0 -34
  140. package/dist/alacritty/themes/homura.toml +0 -34
  141. package/dist/alacritty/themes/jill.toml +0 -34
  142. package/dist/alacritty/themes/joker.toml +0 -34
  143. package/dist/alacritty/themes/jupiter.toml +0 -34
  144. package/dist/alacritty/themes/kagami.toml +0 -34
  145. package/dist/alacritty/themes/kaito.toml +0 -34
  146. package/dist/alacritty/themes/kaworu.toml +0 -34
  147. package/dist/alacritty/themes/kita.toml +0 -34
  148. package/dist/alacritty/themes/konata.toml +0 -34
  149. package/dist/alacritty/themes/kou.toml +0 -34
  150. package/dist/alacritty/themes/kumin.toml +0 -34
  151. package/dist/alacritty/themes/kumori.toml +0 -34
  152. package/dist/alacritty/themes/kurisu.toml +0 -34
  153. package/dist/alacritty/themes/kyoko.toml +0 -34
  154. package/dist/alacritty/themes/kyubey.toml +0 -34
  155. package/dist/alacritty/themes/lain.toml +0 -34
  156. package/dist/alacritty/themes/lambdadelta.toml +0 -34
  157. package/dist/alacritty/themes/len.toml +0 -34
  158. package/dist/alacritty/themes/lucy.toml +0 -34
  159. package/dist/alacritty/themes/luka.toml +0 -34
  160. package/dist/alacritty/themes/madoka.toml +0 -34
  161. package/dist/alacritty/themes/magi.toml +0 -34
  162. package/dist/alacritty/themes/mami.toml +0 -34
  163. package/dist/alacritty/themes/marisa.toml +0 -34
  164. package/dist/alacritty/themes/mars.toml +0 -34
  165. package/dist/alacritty/themes/mayuri.toml +0 -34
  166. package/dist/alacritty/themes/megumi.toml +0 -34
  167. package/dist/alacritty/themes/meiko.toml +0 -34
  168. package/dist/alacritty/themes/mercury.toml +0 -34
  169. package/dist/alacritty/themes/mettaton.toml +0 -34
  170. package/dist/alacritty/themes/miku.toml +0 -34
  171. package/dist/alacritty/themes/mio.toml +0 -34
  172. package/dist/alacritty/themes/mion.toml +0 -34
  173. package/dist/alacritty/themes/misato.toml +0 -34
  174. package/dist/alacritty/themes/miyuki.toml +0 -34
  175. package/dist/alacritty/themes/monika.toml +0 -34
  176. package/dist/alacritty/themes/moon.toml +0 -34
  177. package/dist/alacritty/themes/mugi.toml +0 -34
  178. package/dist/alacritty/themes/nadeko.toml +0 -34
  179. package/dist/alacritty/themes/nagisa.toml +0 -34
  180. package/dist/alacritty/themes/nanami.toml +0 -34
  181. package/dist/alacritty/themes/natsuki.toml +0 -34
  182. package/dist/alacritty/themes/nazuna.toml +0 -34
  183. package/dist/alacritty/themes/neutral.toml +0 -34
  184. package/dist/alacritty/themes/nightcity.toml +0 -34
  185. package/dist/alacritty/themes/nijika.toml +0 -34
  186. package/dist/alacritty/themes/nobara.toml +0 -34
  187. package/dist/alacritty/themes/oracle.toml +0 -34
  188. package/dist/alacritty/themes/panther.toml +0 -34
  189. package/dist/alacritty/themes/papyrus.toml +0 -34
  190. package/dist/alacritty/themes/patchouli.toml +0 -34
  191. package/dist/alacritty/themes/queen.toml +0 -34
  192. package/dist/alacritty/themes/rebecca.toml +0 -34
  193. package/dist/alacritty/themes/rei.toml +0 -34
  194. package/dist/alacritty/themes/reimu.toml +0 -34
  195. package/dist/alacritty/themes/rena.toml +0 -34
  196. package/dist/alacritty/themes/rika.toml +0 -34
  197. package/dist/alacritty/themes/rikka.toml +0 -34
  198. package/dist/alacritty/themes/rin.toml +0 -34
  199. package/dist/alacritty/themes/ritsu.toml +0 -34
  200. package/dist/alacritty/themes/rokkenjima.toml +0 -34
  201. package/dist/alacritty/themes/ryo.toml +0 -34
  202. package/dist/alacritty/themes/sans.toml +0 -34
  203. package/dist/alacritty/themes/satoko.toml +0 -34
  204. package/dist/alacritty/themes/sayaka.toml +0 -34
  205. package/dist/alacritty/themes/sayori.toml +0 -34
  206. package/dist/alacritty/themes/sei.toml +0 -34
  207. package/dist/alacritty/themes/seri.toml +0 -34
  208. package/dist/alacritty/themes/shinka.toml +0 -34
  209. package/dist/alacritty/themes/shinobu.toml +0 -34
  210. package/dist/alacritty/themes/skull.toml +0 -34
  211. package/dist/alacritty/themes/stella.toml +0 -34
  212. package/dist/alacritty/themes/sukuna.toml +0 -34
  213. package/dist/alacritty/themes/suzuha.toml +0 -34
  214. package/dist/alacritty/themes/toriel.toml +0 -34
  215. package/dist/alacritty/themes/tsubasa.toml +0 -34
  216. package/dist/alacritty/themes/tsukasa.toml +0 -34
  217. package/dist/alacritty/themes/undyne.toml +0 -34
  218. package/dist/alacritty/themes/valhalla.toml +0 -34
  219. package/dist/alacritty/themes/velvet.toml +0 -34
  220. package/dist/alacritty/themes/venus.toml +0 -34
  221. package/dist/alacritty/themes/yofukashi.toml +0 -34
  222. package/dist/alacritty/themes/youmu.toml +0 -34
  223. package/dist/alacritty/themes/yui.toml +0 -34
  224. package/dist/alacritty/themes/yuji.toml +0 -34
  225. package/dist/alacritty/themes/yuri.toml +0 -34
  226. package/dist/alacritty/themes/yuuta.toml +0 -34
  227. package/dist/ghostty/themes/alma +0 -29
  228. package/dist/ghostty/themes/anko +0 -29
  229. package/dist/ghostty/themes/asuka +0 -29
  230. package/dist/ghostty/themes/azusa +0 -29
  231. package/dist/ghostty/themes/battler +0 -29
  232. package/dist/ghostty/themes/beatrice +0 -29
  233. package/dist/ghostty/themes/bernkastel +0 -29
  234. package/dist/ghostty/themes/bocchi +0 -29
  235. package/dist/ghostty/themes/cirno +0 -29
  236. package/dist/ghostty/themes/david +0 -29
  237. package/dist/ghostty/themes/dekomori +0 -29
  238. package/dist/ghostty/themes/determination +0 -29
  239. package/dist/ghostty/themes/dorothy +0 -29
  240. package/dist/ghostty/themes/eva01 +0 -29
  241. package/dist/ghostty/themes/flandre +0 -29
  242. package/dist/ghostty/themes/fox +0 -29
  243. package/dist/ghostty/themes/geto +0 -29
  244. package/dist/ghostty/themes/glitch +0 -29
  245. package/dist/ghostty/themes/gojo +0 -29
  246. package/dist/ghostty/themes/hinamizawa +0 -29
  247. package/dist/ghostty/themes/hitagi +0 -29
  248. package/dist/ghostty/themes/homura +0 -29
  249. package/dist/ghostty/themes/jill +0 -29
  250. package/dist/ghostty/themes/joker +0 -29
  251. package/dist/ghostty/themes/jupiter +0 -29
  252. package/dist/ghostty/themes/kagami +0 -29
  253. package/dist/ghostty/themes/kaito +0 -29
  254. package/dist/ghostty/themes/kaworu +0 -29
  255. package/dist/ghostty/themes/kita +0 -29
  256. package/dist/ghostty/themes/konata +0 -29
  257. package/dist/ghostty/themes/kou +0 -29
  258. package/dist/ghostty/themes/kumin +0 -29
  259. package/dist/ghostty/themes/kumori +0 -29
  260. package/dist/ghostty/themes/kurisu +0 -29
  261. package/dist/ghostty/themes/kyoko +0 -29
  262. package/dist/ghostty/themes/kyubey +0 -29
  263. package/dist/ghostty/themes/lain +0 -29
  264. package/dist/ghostty/themes/lambdadelta +0 -29
  265. package/dist/ghostty/themes/len +0 -29
  266. package/dist/ghostty/themes/lucy +0 -29
  267. package/dist/ghostty/themes/luka +0 -29
  268. package/dist/ghostty/themes/madoka +0 -29
  269. package/dist/ghostty/themes/magi +0 -29
  270. package/dist/ghostty/themes/mami +0 -29
  271. package/dist/ghostty/themes/marisa +0 -29
  272. package/dist/ghostty/themes/mars +0 -29
  273. package/dist/ghostty/themes/mayuri +0 -29
  274. package/dist/ghostty/themes/megumi +0 -29
  275. package/dist/ghostty/themes/meiko +0 -29
  276. package/dist/ghostty/themes/mercury +0 -29
  277. package/dist/ghostty/themes/mettaton +0 -29
  278. package/dist/ghostty/themes/miku +0 -29
  279. package/dist/ghostty/themes/mio +0 -29
  280. package/dist/ghostty/themes/mion +0 -29
  281. package/dist/ghostty/themes/misato +0 -29
  282. package/dist/ghostty/themes/miyuki +0 -29
  283. package/dist/ghostty/themes/monika +0 -29
  284. package/dist/ghostty/themes/moon +0 -29
  285. package/dist/ghostty/themes/mugi +0 -29
  286. package/dist/ghostty/themes/nadeko +0 -29
  287. package/dist/ghostty/themes/nagisa +0 -29
  288. package/dist/ghostty/themes/nanami +0 -29
  289. package/dist/ghostty/themes/natsuki +0 -29
  290. package/dist/ghostty/themes/nazuna +0 -29
  291. package/dist/ghostty/themes/neutral +0 -29
  292. package/dist/ghostty/themes/nightcity +0 -29
  293. package/dist/ghostty/themes/nijika +0 -29
  294. package/dist/ghostty/themes/nobara +0 -29
  295. package/dist/ghostty/themes/oracle +0 -29
  296. package/dist/ghostty/themes/panther +0 -29
  297. package/dist/ghostty/themes/papyrus +0 -29
  298. package/dist/ghostty/themes/patchouli +0 -29
  299. package/dist/ghostty/themes/queen +0 -29
  300. package/dist/ghostty/themes/rebecca +0 -29
  301. package/dist/ghostty/themes/rei +0 -29
  302. package/dist/ghostty/themes/reimu +0 -29
  303. package/dist/ghostty/themes/rena +0 -29
  304. package/dist/ghostty/themes/rika +0 -29
  305. package/dist/ghostty/themes/rikka +0 -29
  306. package/dist/ghostty/themes/rin +0 -29
  307. package/dist/ghostty/themes/ritsu +0 -29
  308. package/dist/ghostty/themes/rokkenjima +0 -29
  309. package/dist/ghostty/themes/ryo +0 -29
  310. package/dist/ghostty/themes/sans +0 -29
  311. package/dist/ghostty/themes/satoko +0 -29
  312. package/dist/ghostty/themes/sayaka +0 -29
  313. package/dist/ghostty/themes/sayori +0 -29
  314. package/dist/ghostty/themes/sei +0 -29
  315. package/dist/ghostty/themes/seri +0 -29
  316. package/dist/ghostty/themes/shinka +0 -29
  317. package/dist/ghostty/themes/shinobu +0 -29
  318. package/dist/ghostty/themes/skull +0 -29
  319. package/dist/ghostty/themes/stella +0 -29
  320. package/dist/ghostty/themes/sukuna +0 -29
  321. package/dist/ghostty/themes/suzuha +0 -29
  322. package/dist/ghostty/themes/toriel +0 -29
  323. package/dist/ghostty/themes/tsubasa +0 -29
  324. package/dist/ghostty/themes/tsukasa +0 -29
  325. package/dist/ghostty/themes/undyne +0 -29
  326. package/dist/ghostty/themes/valhalla +0 -29
  327. package/dist/ghostty/themes/velvet +0 -29
  328. package/dist/ghostty/themes/venus +0 -29
  329. package/dist/ghostty/themes/yofukashi +0 -29
  330. package/dist/ghostty/themes/youmu +0 -29
  331. package/dist/ghostty/themes/yui +0 -29
  332. package/dist/ghostty/themes/yuji +0 -29
  333. package/dist/ghostty/themes/yuri +0 -29
  334. package/dist/ghostty/themes/yuuta +0 -29
  335. package/dist/iterm2/alma.itermcolors +0 -305
  336. package/dist/iterm2/anko.itermcolors +0 -305
  337. package/dist/iterm2/asuka.itermcolors +0 -305
  338. package/dist/iterm2/azusa.itermcolors +0 -305
  339. package/dist/iterm2/battler.itermcolors +0 -305
  340. package/dist/iterm2/beatrice.itermcolors +0 -305
  341. package/dist/iterm2/bernkastel.itermcolors +0 -305
  342. package/dist/iterm2/bocchi.itermcolors +0 -305
  343. package/dist/iterm2/cirno.itermcolors +0 -305
  344. package/dist/iterm2/david.itermcolors +0 -305
  345. package/dist/iterm2/dekomori.itermcolors +0 -305
  346. package/dist/iterm2/determination.itermcolors +0 -305
  347. package/dist/iterm2/dorothy.itermcolors +0 -305
  348. package/dist/iterm2/eva01.itermcolors +0 -305
  349. package/dist/iterm2/flandre.itermcolors +0 -305
  350. package/dist/iterm2/fox.itermcolors +0 -305
  351. package/dist/iterm2/geto.itermcolors +0 -305
  352. package/dist/iterm2/glitch.itermcolors +0 -305
  353. package/dist/iterm2/gojo.itermcolors +0 -305
  354. package/dist/iterm2/hinamizawa.itermcolors +0 -305
  355. package/dist/iterm2/hitagi.itermcolors +0 -305
  356. package/dist/iterm2/homura.itermcolors +0 -305
  357. package/dist/iterm2/jill.itermcolors +0 -305
  358. package/dist/iterm2/joker.itermcolors +0 -305
  359. package/dist/iterm2/jupiter.itermcolors +0 -305
  360. package/dist/iterm2/kagami.itermcolors +0 -305
  361. package/dist/iterm2/kaito.itermcolors +0 -305
  362. package/dist/iterm2/kaworu.itermcolors +0 -305
  363. package/dist/iterm2/kita.itermcolors +0 -305
  364. package/dist/iterm2/konata.itermcolors +0 -305
  365. package/dist/iterm2/kou.itermcolors +0 -305
  366. package/dist/iterm2/kumin.itermcolors +0 -305
  367. package/dist/iterm2/kumori.itermcolors +0 -305
  368. package/dist/iterm2/kurisu.itermcolors +0 -305
  369. package/dist/iterm2/kyoko.itermcolors +0 -305
  370. package/dist/iterm2/kyubey.itermcolors +0 -305
  371. package/dist/iterm2/lain.itermcolors +0 -305
  372. package/dist/iterm2/lambdadelta.itermcolors +0 -305
  373. package/dist/iterm2/len.itermcolors +0 -305
  374. package/dist/iterm2/lucy.itermcolors +0 -305
  375. package/dist/iterm2/luka.itermcolors +0 -305
  376. package/dist/iterm2/madoka.itermcolors +0 -305
  377. package/dist/iterm2/magi.itermcolors +0 -305
  378. package/dist/iterm2/mami.itermcolors +0 -305
  379. package/dist/iterm2/marisa.itermcolors +0 -305
  380. package/dist/iterm2/mars.itermcolors +0 -305
  381. package/dist/iterm2/mayuri.itermcolors +0 -305
  382. package/dist/iterm2/megumi.itermcolors +0 -305
  383. package/dist/iterm2/meiko.itermcolors +0 -305
  384. package/dist/iterm2/mercury.itermcolors +0 -305
  385. package/dist/iterm2/mettaton.itermcolors +0 -305
  386. package/dist/iterm2/miku.itermcolors +0 -305
  387. package/dist/iterm2/mio.itermcolors +0 -305
  388. package/dist/iterm2/mion.itermcolors +0 -305
  389. package/dist/iterm2/misato.itermcolors +0 -305
  390. package/dist/iterm2/miyuki.itermcolors +0 -305
  391. package/dist/iterm2/monika.itermcolors +0 -305
  392. package/dist/iterm2/moon.itermcolors +0 -305
  393. package/dist/iterm2/mugi.itermcolors +0 -305
  394. package/dist/iterm2/nadeko.itermcolors +0 -305
  395. package/dist/iterm2/nagisa.itermcolors +0 -305
  396. package/dist/iterm2/nanami.itermcolors +0 -305
  397. package/dist/iterm2/natsuki.itermcolors +0 -305
  398. package/dist/iterm2/nazuna.itermcolors +0 -305
  399. package/dist/iterm2/neutral.itermcolors +0 -305
  400. package/dist/iterm2/nightcity.itermcolors +0 -305
  401. package/dist/iterm2/nijika.itermcolors +0 -305
  402. package/dist/iterm2/nobara.itermcolors +0 -305
  403. package/dist/iterm2/oracle.itermcolors +0 -305
  404. package/dist/iterm2/panther.itermcolors +0 -305
  405. package/dist/iterm2/papyrus.itermcolors +0 -305
  406. package/dist/iterm2/patchouli.itermcolors +0 -305
  407. package/dist/iterm2/queen.itermcolors +0 -305
  408. package/dist/iterm2/rebecca.itermcolors +0 -305
  409. package/dist/iterm2/rei.itermcolors +0 -305
  410. package/dist/iterm2/reimu.itermcolors +0 -305
  411. package/dist/iterm2/rena.itermcolors +0 -305
  412. package/dist/iterm2/rika.itermcolors +0 -305
  413. package/dist/iterm2/rikka.itermcolors +0 -305
  414. package/dist/iterm2/rin.itermcolors +0 -305
  415. package/dist/iterm2/ritsu.itermcolors +0 -305
  416. package/dist/iterm2/rokkenjima.itermcolors +0 -305
  417. package/dist/iterm2/ryo.itermcolors +0 -305
  418. package/dist/iterm2/sans.itermcolors +0 -305
  419. package/dist/iterm2/satoko.itermcolors +0 -305
  420. package/dist/iterm2/sayaka.itermcolors +0 -305
  421. package/dist/iterm2/sayori.itermcolors +0 -305
  422. package/dist/iterm2/sei.itermcolors +0 -305
  423. package/dist/iterm2/seri.itermcolors +0 -305
  424. package/dist/iterm2/shinka.itermcolors +0 -305
  425. package/dist/iterm2/shinobu.itermcolors +0 -305
  426. package/dist/iterm2/skull.itermcolors +0 -305
  427. package/dist/iterm2/stella.itermcolors +0 -305
  428. package/dist/iterm2/sukuna.itermcolors +0 -305
  429. package/dist/iterm2/suzuha.itermcolors +0 -305
  430. package/dist/iterm2/toriel.itermcolors +0 -305
  431. package/dist/iterm2/tsubasa.itermcolors +0 -305
  432. package/dist/iterm2/tsukasa.itermcolors +0 -305
  433. package/dist/iterm2/undyne.itermcolors +0 -305
  434. package/dist/iterm2/valhalla.itermcolors +0 -305
  435. package/dist/iterm2/velvet.itermcolors +0 -305
  436. package/dist/iterm2/venus.itermcolors +0 -305
  437. package/dist/iterm2/yofukashi.itermcolors +0 -305
  438. package/dist/iterm2/youmu.itermcolors +0 -305
  439. package/dist/iterm2/yui.itermcolors +0 -305
  440. package/dist/iterm2/yuji.itermcolors +0 -305
  441. package/dist/iterm2/yuri.itermcolors +0 -305
  442. package/dist/iterm2/yuuta.itermcolors +0 -305
  443. package/dist/kitty/config/alma.conf +0 -4
  444. package/dist/kitty/config/anko.conf +0 -4
  445. package/dist/kitty/config/asuka.conf +0 -4
  446. package/dist/kitty/config/azusa.conf +0 -4
  447. package/dist/kitty/config/battler.conf +0 -4
  448. package/dist/kitty/config/beatrice.conf +0 -4
  449. package/dist/kitty/config/bernkastel.conf +0 -4
  450. package/dist/kitty/config/bocchi.conf +0 -4
  451. package/dist/kitty/config/cirno.conf +0 -4
  452. package/dist/kitty/config/david.conf +0 -4
  453. package/dist/kitty/config/dekomori.conf +0 -4
  454. package/dist/kitty/config/determination.conf +0 -4
  455. package/dist/kitty/config/dorothy.conf +0 -4
  456. package/dist/kitty/config/eva01.conf +0 -4
  457. package/dist/kitty/config/flandre.conf +0 -4
  458. package/dist/kitty/config/fox.conf +0 -4
  459. package/dist/kitty/config/geto.conf +0 -4
  460. package/dist/kitty/config/glitch.conf +0 -4
  461. package/dist/kitty/config/gojo.conf +0 -4
  462. package/dist/kitty/config/hinamizawa.conf +0 -4
  463. package/dist/kitty/config/hitagi.conf +0 -4
  464. package/dist/kitty/config/homura.conf +0 -4
  465. package/dist/kitty/config/jill.conf +0 -4
  466. package/dist/kitty/config/joker.conf +0 -4
  467. package/dist/kitty/config/jupiter.conf +0 -4
  468. package/dist/kitty/config/kagami.conf +0 -4
  469. package/dist/kitty/config/kaito.conf +0 -4
  470. package/dist/kitty/config/kaworu.conf +0 -4
  471. package/dist/kitty/config/kita.conf +0 -4
  472. package/dist/kitty/config/konata.conf +0 -4
  473. package/dist/kitty/config/kou.conf +0 -4
  474. package/dist/kitty/config/kumin.conf +0 -4
  475. package/dist/kitty/config/kumori.conf +0 -4
  476. package/dist/kitty/config/kurisu.conf +0 -4
  477. package/dist/kitty/config/kyoko.conf +0 -4
  478. package/dist/kitty/config/kyubey.conf +0 -4
  479. package/dist/kitty/config/lain.conf +0 -4
  480. package/dist/kitty/config/lambdadelta.conf +0 -4
  481. package/dist/kitty/config/len.conf +0 -4
  482. package/dist/kitty/config/lucy.conf +0 -4
  483. package/dist/kitty/config/luka.conf +0 -4
  484. package/dist/kitty/config/madoka.conf +0 -4
  485. package/dist/kitty/config/magi.conf +0 -4
  486. package/dist/kitty/config/mami.conf +0 -4
  487. package/dist/kitty/config/marisa.conf +0 -4
  488. package/dist/kitty/config/mars.conf +0 -4
  489. package/dist/kitty/config/mayuri.conf +0 -4
  490. package/dist/kitty/config/megumi.conf +0 -4
  491. package/dist/kitty/config/meiko.conf +0 -4
  492. package/dist/kitty/config/mercury.conf +0 -4
  493. package/dist/kitty/config/mettaton.conf +0 -4
  494. package/dist/kitty/config/miku.conf +0 -4
  495. package/dist/kitty/config/mio.conf +0 -4
  496. package/dist/kitty/config/mion.conf +0 -4
  497. package/dist/kitty/config/misato.conf +0 -4
  498. package/dist/kitty/config/miyuki.conf +0 -4
  499. package/dist/kitty/config/monika.conf +0 -4
  500. package/dist/kitty/config/moon.conf +0 -4
  501. package/dist/kitty/config/mugi.conf +0 -4
  502. package/dist/kitty/config/nadeko.conf +0 -4
  503. package/dist/kitty/config/nagisa.conf +0 -4
  504. package/dist/kitty/config/nanami.conf +0 -4
  505. package/dist/kitty/config/natsuki.conf +0 -4
  506. package/dist/kitty/config/nazuna.conf +0 -4
  507. package/dist/kitty/config/neutral.conf +0 -4
  508. package/dist/kitty/config/nightcity.conf +0 -4
  509. package/dist/kitty/config/nijika.conf +0 -4
  510. package/dist/kitty/config/nobara.conf +0 -4
  511. package/dist/kitty/config/oracle.conf +0 -4
  512. package/dist/kitty/config/panther.conf +0 -4
  513. package/dist/kitty/config/papyrus.conf +0 -4
  514. package/dist/kitty/config/patchouli.conf +0 -4
  515. package/dist/kitty/config/queen.conf +0 -4
  516. package/dist/kitty/config/rebecca.conf +0 -4
  517. package/dist/kitty/config/rei.conf +0 -4
  518. package/dist/kitty/config/reimu.conf +0 -4
  519. package/dist/kitty/config/rena.conf +0 -4
  520. package/dist/kitty/config/rika.conf +0 -4
  521. package/dist/kitty/config/rikka.conf +0 -4
  522. package/dist/kitty/config/rin.conf +0 -4
  523. package/dist/kitty/config/ritsu.conf +0 -4
  524. package/dist/kitty/config/rokkenjima.conf +0 -4
  525. package/dist/kitty/config/ryo.conf +0 -4
  526. package/dist/kitty/config/sans.conf +0 -4
  527. package/dist/kitty/config/satoko.conf +0 -4
  528. package/dist/kitty/config/sayaka.conf +0 -4
  529. package/dist/kitty/config/sayori.conf +0 -4
  530. package/dist/kitty/config/sei.conf +0 -4
  531. package/dist/kitty/config/seri.conf +0 -4
  532. package/dist/kitty/config/shinka.conf +0 -4
  533. package/dist/kitty/config/shinobu.conf +0 -4
  534. package/dist/kitty/config/skull.conf +0 -4
  535. package/dist/kitty/config/stella.conf +0 -4
  536. package/dist/kitty/config/sukuna.conf +0 -4
  537. package/dist/kitty/config/suzuha.conf +0 -4
  538. package/dist/kitty/config/toriel.conf +0 -4
  539. package/dist/kitty/config/tsubasa.conf +0 -4
  540. package/dist/kitty/config/tsukasa.conf +0 -4
  541. package/dist/kitty/config/undyne.conf +0 -4
  542. package/dist/kitty/config/valhalla.conf +0 -4
  543. package/dist/kitty/config/velvet.conf +0 -4
  544. package/dist/kitty/config/venus.conf +0 -4
  545. package/dist/kitty/config/yofukashi.conf +0 -4
  546. package/dist/kitty/config/youmu.conf +0 -4
  547. package/dist/kitty/config/yui.conf +0 -4
  548. package/dist/kitty/config/yuji.conf +0 -4
  549. package/dist/kitty/config/yuri.conf +0 -4
  550. package/dist/kitty/config/yuuta.conf +0 -4
  551. package/dist/kitty/themes/alma.conf +0 -24
  552. package/dist/kitty/themes/anko.conf +0 -24
  553. package/dist/kitty/themes/asuka.conf +0 -24
  554. package/dist/kitty/themes/azusa.conf +0 -24
  555. package/dist/kitty/themes/battler.conf +0 -24
  556. package/dist/kitty/themes/beatrice.conf +0 -24
  557. package/dist/kitty/themes/bernkastel.conf +0 -24
  558. package/dist/kitty/themes/bocchi.conf +0 -24
  559. package/dist/kitty/themes/cirno.conf +0 -24
  560. package/dist/kitty/themes/david.conf +0 -24
  561. package/dist/kitty/themes/dekomori.conf +0 -24
  562. package/dist/kitty/themes/determination.conf +0 -24
  563. package/dist/kitty/themes/dorothy.conf +0 -24
  564. package/dist/kitty/themes/eva01.conf +0 -24
  565. package/dist/kitty/themes/flandre.conf +0 -24
  566. package/dist/kitty/themes/fox.conf +0 -24
  567. package/dist/kitty/themes/geto.conf +0 -24
  568. package/dist/kitty/themes/glitch.conf +0 -24
  569. package/dist/kitty/themes/gojo.conf +0 -24
  570. package/dist/kitty/themes/hinamizawa.conf +0 -24
  571. package/dist/kitty/themes/hitagi.conf +0 -24
  572. package/dist/kitty/themes/homura.conf +0 -24
  573. package/dist/kitty/themes/jill.conf +0 -24
  574. package/dist/kitty/themes/joker.conf +0 -24
  575. package/dist/kitty/themes/jupiter.conf +0 -24
  576. package/dist/kitty/themes/kagami.conf +0 -24
  577. package/dist/kitty/themes/kaito.conf +0 -24
  578. package/dist/kitty/themes/kaworu.conf +0 -24
  579. package/dist/kitty/themes/kita.conf +0 -24
  580. package/dist/kitty/themes/konata.conf +0 -24
  581. package/dist/kitty/themes/kou.conf +0 -24
  582. package/dist/kitty/themes/kumin.conf +0 -24
  583. package/dist/kitty/themes/kumori.conf +0 -24
  584. package/dist/kitty/themes/kurisu.conf +0 -24
  585. package/dist/kitty/themes/kyoko.conf +0 -24
  586. package/dist/kitty/themes/kyubey.conf +0 -24
  587. package/dist/kitty/themes/lain.conf +0 -24
  588. package/dist/kitty/themes/lambdadelta.conf +0 -24
  589. package/dist/kitty/themes/len.conf +0 -24
  590. package/dist/kitty/themes/lucy.conf +0 -24
  591. package/dist/kitty/themes/luka.conf +0 -24
  592. package/dist/kitty/themes/madoka.conf +0 -24
  593. package/dist/kitty/themes/magi.conf +0 -24
  594. package/dist/kitty/themes/mami.conf +0 -24
  595. package/dist/kitty/themes/marisa.conf +0 -24
  596. package/dist/kitty/themes/mars.conf +0 -24
  597. package/dist/kitty/themes/mayuri.conf +0 -24
  598. package/dist/kitty/themes/megumi.conf +0 -24
  599. package/dist/kitty/themes/meiko.conf +0 -24
  600. package/dist/kitty/themes/mercury.conf +0 -24
  601. package/dist/kitty/themes/mettaton.conf +0 -24
  602. package/dist/kitty/themes/miku.conf +0 -24
  603. package/dist/kitty/themes/mio.conf +0 -24
  604. package/dist/kitty/themes/mion.conf +0 -24
  605. package/dist/kitty/themes/misato.conf +0 -24
  606. package/dist/kitty/themes/miyuki.conf +0 -24
  607. package/dist/kitty/themes/monika.conf +0 -24
  608. package/dist/kitty/themes/moon.conf +0 -24
  609. package/dist/kitty/themes/mugi.conf +0 -24
  610. package/dist/kitty/themes/nadeko.conf +0 -24
  611. package/dist/kitty/themes/nagisa.conf +0 -24
  612. package/dist/kitty/themes/nanami.conf +0 -24
  613. package/dist/kitty/themes/natsuki.conf +0 -24
  614. package/dist/kitty/themes/nazuna.conf +0 -24
  615. package/dist/kitty/themes/neutral.conf +0 -24
  616. package/dist/kitty/themes/nightcity.conf +0 -24
  617. package/dist/kitty/themes/nijika.conf +0 -24
  618. package/dist/kitty/themes/nobara.conf +0 -24
  619. package/dist/kitty/themes/oracle.conf +0 -24
  620. package/dist/kitty/themes/panther.conf +0 -24
  621. package/dist/kitty/themes/papyrus.conf +0 -24
  622. package/dist/kitty/themes/patchouli.conf +0 -24
  623. package/dist/kitty/themes/queen.conf +0 -24
  624. package/dist/kitty/themes/rebecca.conf +0 -24
  625. package/dist/kitty/themes/rei.conf +0 -24
  626. package/dist/kitty/themes/reimu.conf +0 -24
  627. package/dist/kitty/themes/rena.conf +0 -24
  628. package/dist/kitty/themes/rika.conf +0 -24
  629. package/dist/kitty/themes/rikka.conf +0 -24
  630. package/dist/kitty/themes/rin.conf +0 -24
  631. package/dist/kitty/themes/ritsu.conf +0 -24
  632. package/dist/kitty/themes/rokkenjima.conf +0 -24
  633. package/dist/kitty/themes/ryo.conf +0 -24
  634. package/dist/kitty/themes/sans.conf +0 -24
  635. package/dist/kitty/themes/satoko.conf +0 -24
  636. package/dist/kitty/themes/sayaka.conf +0 -24
  637. package/dist/kitty/themes/sayori.conf +0 -24
  638. package/dist/kitty/themes/sei.conf +0 -24
  639. package/dist/kitty/themes/seri.conf +0 -24
  640. package/dist/kitty/themes/shinka.conf +0 -24
  641. package/dist/kitty/themes/shinobu.conf +0 -24
  642. package/dist/kitty/themes/skull.conf +0 -24
  643. package/dist/kitty/themes/stella.conf +0 -24
  644. package/dist/kitty/themes/sukuna.conf +0 -24
  645. package/dist/kitty/themes/suzuha.conf +0 -24
  646. package/dist/kitty/themes/toriel.conf +0 -24
  647. package/dist/kitty/themes/tsubasa.conf +0 -24
  648. package/dist/kitty/themes/tsukasa.conf +0 -24
  649. package/dist/kitty/themes/undyne.conf +0 -24
  650. package/dist/kitty/themes/valhalla.conf +0 -24
  651. package/dist/kitty/themes/velvet.conf +0 -24
  652. package/dist/kitty/themes/venus.conf +0 -24
  653. package/dist/kitty/themes/yofukashi.conf +0 -24
  654. package/dist/kitty/themes/youmu.conf +0 -24
  655. package/dist/kitty/themes/yui.conf +0 -24
  656. package/dist/kitty/themes/yuji.conf +0 -24
  657. package/dist/kitty/themes/yuri.conf +0 -24
  658. package/dist/kitty/themes/yuuta.conf +0 -24
  659. package/dist/shell/palettes.zsh +0 -497
  660. package/dist/wezterm/colors/alma.toml +0 -15
  661. package/dist/wezterm/colors/anko.toml +0 -15
  662. package/dist/wezterm/colors/asuka.toml +0 -15
  663. package/dist/wezterm/colors/azusa.toml +0 -15
  664. package/dist/wezterm/colors/battler.toml +0 -15
  665. package/dist/wezterm/colors/beatrice.toml +0 -15
  666. package/dist/wezterm/colors/bernkastel.toml +0 -15
  667. package/dist/wezterm/colors/bocchi.toml +0 -15
  668. package/dist/wezterm/colors/cirno.toml +0 -15
  669. package/dist/wezterm/colors/david.toml +0 -15
  670. package/dist/wezterm/colors/dekomori.toml +0 -15
  671. package/dist/wezterm/colors/determination.toml +0 -15
  672. package/dist/wezterm/colors/dorothy.toml +0 -15
  673. package/dist/wezterm/colors/eva01.toml +0 -15
  674. package/dist/wezterm/colors/flandre.toml +0 -15
  675. package/dist/wezterm/colors/fox.toml +0 -15
  676. package/dist/wezterm/colors/geto.toml +0 -15
  677. package/dist/wezterm/colors/glitch.toml +0 -15
  678. package/dist/wezterm/colors/gojo.toml +0 -15
  679. package/dist/wezterm/colors/hinamizawa.toml +0 -15
  680. package/dist/wezterm/colors/hitagi.toml +0 -15
  681. package/dist/wezterm/colors/homura.toml +0 -15
  682. package/dist/wezterm/colors/jill.toml +0 -15
  683. package/dist/wezterm/colors/joker.toml +0 -15
  684. package/dist/wezterm/colors/jupiter.toml +0 -15
  685. package/dist/wezterm/colors/kagami.toml +0 -15
  686. package/dist/wezterm/colors/kaito.toml +0 -15
  687. package/dist/wezterm/colors/kaworu.toml +0 -15
  688. package/dist/wezterm/colors/kita.toml +0 -15
  689. package/dist/wezterm/colors/konata.toml +0 -15
  690. package/dist/wezterm/colors/kou.toml +0 -15
  691. package/dist/wezterm/colors/kumin.toml +0 -15
  692. package/dist/wezterm/colors/kumori.toml +0 -15
  693. package/dist/wezterm/colors/kurisu.toml +0 -15
  694. package/dist/wezterm/colors/kyoko.toml +0 -15
  695. package/dist/wezterm/colors/kyubey.toml +0 -15
  696. package/dist/wezterm/colors/lain.toml +0 -15
  697. package/dist/wezterm/colors/lambdadelta.toml +0 -15
  698. package/dist/wezterm/colors/len.toml +0 -15
  699. package/dist/wezterm/colors/lucy.toml +0 -15
  700. package/dist/wezterm/colors/luka.toml +0 -15
  701. package/dist/wezterm/colors/madoka.toml +0 -15
  702. package/dist/wezterm/colors/magi.toml +0 -15
  703. package/dist/wezterm/colors/mami.toml +0 -15
  704. package/dist/wezterm/colors/marisa.toml +0 -15
  705. package/dist/wezterm/colors/mars.toml +0 -15
  706. package/dist/wezterm/colors/mayuri.toml +0 -15
  707. package/dist/wezterm/colors/megumi.toml +0 -15
  708. package/dist/wezterm/colors/meiko.toml +0 -15
  709. package/dist/wezterm/colors/mercury.toml +0 -15
  710. package/dist/wezterm/colors/mettaton.toml +0 -15
  711. package/dist/wezterm/colors/miku.toml +0 -15
  712. package/dist/wezterm/colors/mio.toml +0 -15
  713. package/dist/wezterm/colors/mion.toml +0 -15
  714. package/dist/wezterm/colors/misato.toml +0 -15
  715. package/dist/wezterm/colors/miyuki.toml +0 -15
  716. package/dist/wezterm/colors/monika.toml +0 -15
  717. package/dist/wezterm/colors/moon.toml +0 -15
  718. package/dist/wezterm/colors/mugi.toml +0 -15
  719. package/dist/wezterm/colors/nadeko.toml +0 -15
  720. package/dist/wezterm/colors/nagisa.toml +0 -15
  721. package/dist/wezterm/colors/nanami.toml +0 -15
  722. package/dist/wezterm/colors/natsuki.toml +0 -15
  723. package/dist/wezterm/colors/nazuna.toml +0 -15
  724. package/dist/wezterm/colors/neutral.toml +0 -15
  725. package/dist/wezterm/colors/nightcity.toml +0 -15
  726. package/dist/wezterm/colors/nijika.toml +0 -15
  727. package/dist/wezterm/colors/nobara.toml +0 -15
  728. package/dist/wezterm/colors/oracle.toml +0 -15
  729. package/dist/wezterm/colors/panther.toml +0 -15
  730. package/dist/wezterm/colors/papyrus.toml +0 -15
  731. package/dist/wezterm/colors/patchouli.toml +0 -15
  732. package/dist/wezterm/colors/queen.toml +0 -15
  733. package/dist/wezterm/colors/rebecca.toml +0 -15
  734. package/dist/wezterm/colors/rei.toml +0 -15
  735. package/dist/wezterm/colors/reimu.toml +0 -15
  736. package/dist/wezterm/colors/rena.toml +0 -15
  737. package/dist/wezterm/colors/rika.toml +0 -15
  738. package/dist/wezterm/colors/rikka.toml +0 -15
  739. package/dist/wezterm/colors/rin.toml +0 -15
  740. package/dist/wezterm/colors/ritsu.toml +0 -15
  741. package/dist/wezterm/colors/rokkenjima.toml +0 -15
  742. package/dist/wezterm/colors/ryo.toml +0 -15
  743. package/dist/wezterm/colors/sans.toml +0 -15
  744. package/dist/wezterm/colors/satoko.toml +0 -15
  745. package/dist/wezterm/colors/sayaka.toml +0 -15
  746. package/dist/wezterm/colors/sayori.toml +0 -15
  747. package/dist/wezterm/colors/sei.toml +0 -15
  748. package/dist/wezterm/colors/seri.toml +0 -15
  749. package/dist/wezterm/colors/shinka.toml +0 -15
  750. package/dist/wezterm/colors/shinobu.toml +0 -15
  751. package/dist/wezterm/colors/skull.toml +0 -15
  752. package/dist/wezterm/colors/stella.toml +0 -15
  753. package/dist/wezterm/colors/sukuna.toml +0 -15
  754. package/dist/wezterm/colors/suzuha.toml +0 -15
  755. package/dist/wezterm/colors/toriel.toml +0 -15
  756. package/dist/wezterm/colors/tsubasa.toml +0 -15
  757. package/dist/wezterm/colors/tsukasa.toml +0 -15
  758. package/dist/wezterm/colors/undyne.toml +0 -15
  759. package/dist/wezterm/colors/valhalla.toml +0 -15
  760. package/dist/wezterm/colors/velvet.toml +0 -15
  761. package/dist/wezterm/colors/venus.toml +0 -15
  762. package/dist/wezterm/colors/yofukashi.toml +0 -15
  763. package/dist/wezterm/colors/youmu.toml +0 -15
  764. package/dist/wezterm/colors/yui.toml +0 -15
  765. package/dist/wezterm/colors/yuji.toml +0 -15
  766. package/dist/wezterm/colors/yuri.toml +0 -15
  767. package/dist/wezterm/colors/yuuta.toml +0 -15
  768. package/dist/wezterm/config/alma.lua +0 -10
  769. package/dist/wezterm/config/anko.lua +0 -10
  770. package/dist/wezterm/config/asuka.lua +0 -10
  771. package/dist/wezterm/config/azusa.lua +0 -10
  772. package/dist/wezterm/config/battler.lua +0 -10
  773. package/dist/wezterm/config/beatrice.lua +0 -10
  774. package/dist/wezterm/config/bernkastel.lua +0 -10
  775. package/dist/wezterm/config/bocchi.lua +0 -10
  776. package/dist/wezterm/config/cirno.lua +0 -10
  777. package/dist/wezterm/config/david.lua +0 -10
  778. package/dist/wezterm/config/dekomori.lua +0 -10
  779. package/dist/wezterm/config/determination.lua +0 -10
  780. package/dist/wezterm/config/dorothy.lua +0 -10
  781. package/dist/wezterm/config/eva01.lua +0 -10
  782. package/dist/wezterm/config/flandre.lua +0 -10
  783. package/dist/wezterm/config/fox.lua +0 -10
  784. package/dist/wezterm/config/geto.lua +0 -10
  785. package/dist/wezterm/config/glitch.lua +0 -10
  786. package/dist/wezterm/config/gojo.lua +0 -10
  787. package/dist/wezterm/config/hinamizawa.lua +0 -10
  788. package/dist/wezterm/config/hitagi.lua +0 -10
  789. package/dist/wezterm/config/homura.lua +0 -10
  790. package/dist/wezterm/config/jill.lua +0 -10
  791. package/dist/wezterm/config/joker.lua +0 -10
  792. package/dist/wezterm/config/jupiter.lua +0 -10
  793. package/dist/wezterm/config/kagami.lua +0 -10
  794. package/dist/wezterm/config/kaito.lua +0 -10
  795. package/dist/wezterm/config/kaworu.lua +0 -10
  796. package/dist/wezterm/config/kita.lua +0 -10
  797. package/dist/wezterm/config/konata.lua +0 -10
  798. package/dist/wezterm/config/kou.lua +0 -10
  799. package/dist/wezterm/config/kumin.lua +0 -10
  800. package/dist/wezterm/config/kumori.lua +0 -10
  801. package/dist/wezterm/config/kurisu.lua +0 -10
  802. package/dist/wezterm/config/kyoko.lua +0 -10
  803. package/dist/wezterm/config/kyubey.lua +0 -10
  804. package/dist/wezterm/config/lain.lua +0 -10
  805. package/dist/wezterm/config/lambdadelta.lua +0 -10
  806. package/dist/wezterm/config/len.lua +0 -10
  807. package/dist/wezterm/config/lucy.lua +0 -10
  808. package/dist/wezterm/config/luka.lua +0 -10
  809. package/dist/wezterm/config/madoka.lua +0 -10
  810. package/dist/wezterm/config/magi.lua +0 -10
  811. package/dist/wezterm/config/mami.lua +0 -10
  812. package/dist/wezterm/config/marisa.lua +0 -10
  813. package/dist/wezterm/config/mars.lua +0 -10
  814. package/dist/wezterm/config/mayuri.lua +0 -10
  815. package/dist/wezterm/config/megumi.lua +0 -10
  816. package/dist/wezterm/config/meiko.lua +0 -10
  817. package/dist/wezterm/config/mercury.lua +0 -10
  818. package/dist/wezterm/config/mettaton.lua +0 -10
  819. package/dist/wezterm/config/miku.lua +0 -10
  820. package/dist/wezterm/config/mio.lua +0 -10
  821. package/dist/wezterm/config/mion.lua +0 -10
  822. package/dist/wezterm/config/misato.lua +0 -10
  823. package/dist/wezterm/config/miyuki.lua +0 -10
  824. package/dist/wezterm/config/monika.lua +0 -10
  825. package/dist/wezterm/config/moon.lua +0 -10
  826. package/dist/wezterm/config/mugi.lua +0 -10
  827. package/dist/wezterm/config/nadeko.lua +0 -10
  828. package/dist/wezterm/config/nagisa.lua +0 -10
  829. package/dist/wezterm/config/nanami.lua +0 -10
  830. package/dist/wezterm/config/natsuki.lua +0 -10
  831. package/dist/wezterm/config/nazuna.lua +0 -10
  832. package/dist/wezterm/config/neutral.lua +0 -10
  833. package/dist/wezterm/config/nightcity.lua +0 -10
  834. package/dist/wezterm/config/nijika.lua +0 -10
  835. package/dist/wezterm/config/nobara.lua +0 -10
  836. package/dist/wezterm/config/oracle.lua +0 -10
  837. package/dist/wezterm/config/panther.lua +0 -10
  838. package/dist/wezterm/config/papyrus.lua +0 -10
  839. package/dist/wezterm/config/patchouli.lua +0 -10
  840. package/dist/wezterm/config/queen.lua +0 -10
  841. package/dist/wezterm/config/rebecca.lua +0 -10
  842. package/dist/wezterm/config/rei.lua +0 -10
  843. package/dist/wezterm/config/reimu.lua +0 -10
  844. package/dist/wezterm/config/rena.lua +0 -10
  845. package/dist/wezterm/config/rika.lua +0 -10
  846. package/dist/wezterm/config/rikka.lua +0 -10
  847. package/dist/wezterm/config/rin.lua +0 -10
  848. package/dist/wezterm/config/ritsu.lua +0 -10
  849. package/dist/wezterm/config/rokkenjima.lua +0 -10
  850. package/dist/wezterm/config/ryo.lua +0 -10
  851. package/dist/wezterm/config/sans.lua +0 -10
  852. package/dist/wezterm/config/satoko.lua +0 -10
  853. package/dist/wezterm/config/sayaka.lua +0 -10
  854. package/dist/wezterm/config/sayori.lua +0 -10
  855. package/dist/wezterm/config/sei.lua +0 -10
  856. package/dist/wezterm/config/seri.lua +0 -10
  857. package/dist/wezterm/config/shinka.lua +0 -10
  858. package/dist/wezterm/config/shinobu.lua +0 -10
  859. package/dist/wezterm/config/skull.lua +0 -10
  860. package/dist/wezterm/config/stella.lua +0 -10
  861. package/dist/wezterm/config/sukuna.lua +0 -10
  862. package/dist/wezterm/config/suzuha.lua +0 -10
  863. package/dist/wezterm/config/toriel.lua +0 -10
  864. package/dist/wezterm/config/tsubasa.lua +0 -10
  865. package/dist/wezterm/config/tsukasa.lua +0 -10
  866. package/dist/wezterm/config/undyne.lua +0 -10
  867. package/dist/wezterm/config/valhalla.lua +0 -10
  868. package/dist/wezterm/config/velvet.lua +0 -10
  869. package/dist/wezterm/config/venus.lua +0 -10
  870. package/dist/wezterm/config/yofukashi.lua +0 -10
  871. package/dist/wezterm/config/youmu.lua +0 -10
  872. package/dist/wezterm/config/yui.lua +0 -10
  873. package/dist/wezterm/config/yuji.lua +0 -10
  874. package/dist/wezterm/config/yuri.lua +0 -10
  875. package/dist/wezterm/config/yuuta.lua +0 -10
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.5",
2
+ "version": "1.0.1",
3
3
  "gate": [
4
4
  {
5
5
  "rule": "foreground",
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@kecan0406/ttheme",
3
- "version": "0.1.5",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ttheme": "bin/ttheme.js"
7
7
  },
8
8
  "files": [
9
9
  "bin",
10
- "dist",
10
+ "dist/manifest.json",
11
+ "dist/ghostty/ttheme.conf",
11
12
  "shell",
12
13
  "!shell/check.zsh",
13
14
  "ghostty/shaders"
@@ -37,7 +38,6 @@
37
38
  "@material/material-color-utilities": "^0.4.0",
38
39
  "@types/bun": "^1.3.0",
39
40
  "@types/pngjs": "6.0.5",
40
- "commander": "^15.0.0",
41
41
  "jpeg-js": "^0.4.4",
42
42
  "pngjs": "7.0.0",
43
43
  "typescript": "^5.8.2"
@@ -0,0 +1,521 @@
1
+ typeset -ga TTHEME_BG_POSITIONS=(top-left top-center top-right center-left center center-right bottom-left bottom-center bottom-right)
2
+
3
+ __tt_ghostty_shown() {
4
+ local f=${TTHEME_CONFIG:h}/backgrounds/shown.conf
5
+ REPLY=""
6
+ [[ -r $f ]] || return 1
7
+ REPLY=${${"$(<$f)"}##*\?}
8
+ REPLY=${REPLY%.conf}
9
+ }
10
+
11
+ __tt_bg_saved() {
12
+ local REPLY
13
+ (( ${TTHEME_TERMINALS[(Ie)iterm2]} )) && __tt_cli image $1 tuned
14
+ __tt_ghostty_shown && (( ${@[(Ie)$REPLY]} )) && __tt_reload
15
+ return 0
16
+ }
17
+
18
+ __tt_bg_aligns() { (( ! ${TTHEME_TERMINALS[(Ie)iterm2]} )) }
19
+
20
+ __tt_b64() {
21
+ local t=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ out="" i n
22
+ local -a b=("$@")
23
+ for (( i = 1; i <= ${#b}; i += 3 )); do
24
+ n=$(( (b[i] << 16) | (${b[i+1]:-0} << 8) | ${b[i+2]:-0} ))
25
+ out+=${t:$(( (n >> 18) & 63 )):1}${t:$(( (n >> 12) & 63 )):1}
26
+ if (( i + 1 <= ${#b} )); then out+=${t:$(( (n >> 6) & 63 )):1}; else out+='='; fi
27
+ if (( i + 2 <= ${#b} )); then out+=${t:$(( n & 63 )):1}; else out+='='; fi
28
+ done
29
+ REPLY=$out
30
+ }
31
+
32
+ __tt_bg_frame() {
33
+ local -i iw=$1 ih=$2 W=$3 H=$4 s=$5 ax=$(( ($6 - 1) % 3 )) ay=$(( ($6 - 1) / 3 )) f=${8:--1} wide dw dh ox oy
34
+ wide=$(( W * ih >= H * iw ))
35
+ [[ $7 == contain ]] && wide=$(( ! wide ))
36
+ if (( wide )); then
37
+ dw=$(( s * W / 100 )) dh=$(( s * W * ih / (100 * iw) ))
38
+ else
39
+ dh=$(( s * H / 100 )) dw=$(( s * H * iw / (100 * ih) ))
40
+ fi
41
+ ox=$(( ax * (W - dw) / 2 )) oy=$(( ay * (H - dh) / 2 ))
42
+ if (( f >= 0 )); then
43
+ (( dw > W )) && ox=$(( (W - dw) / 2 ))
44
+ if (( dh > H )); then
45
+ oy=$(( H / 2 - f * dh / 100 ))
46
+ (( oy > 0 )) && oy=0
47
+ (( oy < H - dh )) && oy=$(( H - dh ))
48
+ fi
49
+ fi
50
+ REPLY="$dw $dh $ox $oy"
51
+ }
52
+
53
+ __tt_bg_place() {
54
+ local -i cw=$5 ch=$6 W=$(( $3 * $5 )) H=$(( $4 * $6 )) dw dh sx sy c0 c1 r0 r1
55
+ local -a fr
56
+ __tt_bg_frame $1 $2 $W $H $7 $8 $9 ${10:--1}
57
+ fr=(${=REPLY})
58
+ dw=$fr[1] dh=$fr[2] sx=$fr[3] sy=$fr[4]
59
+ c0=$(( ((sx > 0 ? sx : 0) + cw - 1) / cw )) c1=$(( (sx + dw < W ? sx + dw : W) / cw ))
60
+ r0=$(( ((sy > 0 ? sy : 0) + ch - 1) / ch )) r1=$(( (sy + dh < H ? sy + dh : H) / ch ))
61
+ (( c1 > c0 && r1 > r0 )) || return 1
62
+ REPLY="$(( c0 + 1 )) $(( r0 + 1 )) $(( c1 - c0 )) $(( r1 - r0 )) $(( (c0 * cw - sx) * $1 / dw )) $(( (r0 * ch - sy) * $2 / dh )) $(( (c1 - c0) * cw * $1 / dw )) $(( (r1 - r0) * ch * $2 / dh ))"
63
+ }
64
+
65
+ __tt_bg_at() {
66
+ local src=""
67
+ (( $# > 6 )) && src=",x=$7,y=$8,w=$9,h=${10}"
68
+ if (( bgrel )); then
69
+ printf '\e_Ga=p,i=%d,p=%d,P=999999,Q=999999,H=%d,V=%d,c=%d,r=%d%s,C=1,z=%d,q=2\e\\' $1 $1 $(( $3 - bgmx )) $(( $4 - bgmy )) $5 $6 "$src" $2
70
+ else
71
+ printf '\e[%d;%dH\e_Ga=p,i=%d,p=%d,c=%d,r=%d%s,C=1,z=%d,q=2\e\\' $(( $4 + 1 )) $(( $3 + 1 )) $1 $1 $5 $6 "$src" $2
72
+ fi
73
+ }
74
+
75
+ __tt_bg_path() {
76
+ local p=${${1#\"}%\"}
77
+ p=${p/#\~\//$HOME/}
78
+ [[ -z $p || $p == /* ]] || p=${TTHEME_CONFIG:h}/backgrounds/$p
79
+ REPLY=$p
80
+ }
81
+
82
+ __tt_bg_load() {
83
+ local name=$1 dir=${TTHEME_CONFIG:h}/backgrounds img="" fit=contain op=1 pos=center f line stem="" size=100 REPLY
84
+ local -i at=5
85
+ local -a fills
86
+ (( ${+bgsrc[$name]} )) && return 0
87
+ bgfrom[$name]=""
88
+ for f in $dir/$name.conf $dir/$name.tune.conf; do
89
+ if [[ -r $f ]]; then
90
+ for line in "${(@f)$(<$f)}"; do
91
+ case $line in
92
+ '# from '*) [[ $f == *.tune.conf ]] || bgfrom[$name]=${(j: :)${${=line#\# from }[1,2]}} ;;
93
+ 'background-image = '*|'background-image='*) img=${${line#*=}# } ;;
94
+ 'background-image-fit = '*|'background-image-fit='*) fit=${${line#*=}# } ;;
95
+ 'background-image-opacity = '*|'background-image-opacity='*) op=${${line#*=}# } ;;
96
+ 'background-image-position = '*|'background-image-position='*) pos=${${line#*=}# } ;;
97
+ esac
98
+ done
99
+ fi
100
+ [[ $op == <->(|.<->) ]] || op=1
101
+ [[ $pos == center-center ]] && pos=center
102
+ at=${TTHEME_BG_POSITIONS[(Ie)$pos]}
103
+ (( at )) || at=5
104
+ __tt_bg_path "$img"
105
+ size=100 stem=""
106
+ case $REPLY in
107
+ *@fill-<0-100>.png) stem=${REPLY%@fill-*} size=fill ;;
108
+ *@<20-999>-*-<->x<->.png|*@<20-99>-*.png) stem=${REPLY%@*} size=${${REPLY##*@}%%-*} ;;
109
+ *.png) stem=${REPLY%.png}; [[ $fit == cover ]] && size=fill ;;
110
+ esac
111
+ [[ $f == *.tune.conf ]] || bgdef[$name]="$size $at $op" bgbase[$name]=$REPLY
112
+ done
113
+ bgsize[$name]=$size bgpos[$name]=$at bgop[$name]=$op bgoff[$name]=0 bgshot[$name]="" bgshotkey[$name]="" bgfocus[$name]=50
114
+ [[ -e $dir/$name.off.conf ]] && bgoff[$name]=1
115
+ bgload[$name]="$size $at $op ${bgoff[$name]}"
116
+ [[ $REPLY == *@<20-999>-*-<->x<->.png ]] && bgshot[$name]=$REPLY bgshotkey[$name]="$size $at"
117
+ if [[ -n $stem ]]; then
118
+ bgsrc[$name]=$stem.png bgfill[$name]=$stem.png
119
+ fills=($stem@fill-<0-100>.png(N))
120
+ (( ${#fills} )) && bgfill[$name]=$fills[1] bgfocus[$name]=${${fills[1]##*@fill-}%.png}
121
+ else
122
+ bgsrc[$name]=$REPLY bgfill[$name]=$REPLY
123
+ fi
124
+ }
125
+
126
+ __tt_bg_image() {
127
+ REPLY=${bgsrc[$1]}
128
+ [[ ${bgsize[$1]} == fill ]] && REPLY=${bgfill[$1]}
129
+ }
130
+
131
+ __tt_bg_label() {
132
+ local size=${bgsize[$1]}
133
+ [[ $size == fill ]] || size+=%
134
+ REPLY="$size · ${TTHEME_BG_POSITIONS[${bgpos[$1]}]} · ${bgop[$1]}"
135
+ }
136
+
137
+ __tt_bg_dim() {
138
+ local img=$1
139
+ local -a d
140
+ [[ -n $img && -r $img ]] || return 1
141
+ if [[ -z ${bgdim[$img]} ]]; then
142
+ d=($(od -An -N24 -tu1 -- $img 2>/dev/null))
143
+ if (( ${#d} == 24 && d[1] == 137 && d[2] == 80 && d[3] == 78 && d[4] == 71 )); then
144
+ bgdim[$img]="$(( (d[17] << 24) | (d[18] << 16) | (d[19] << 8) | d[20] )) $(( (d[21] << 24) | (d[22] << 16) | (d[23] << 8) | d[24] ))"
145
+ else
146
+ bgdim[$img]=-
147
+ fi
148
+ fi
149
+ [[ ${bgdim[$img]} != - ]]
150
+ }
151
+
152
+ __tt_bg_bake() {
153
+ local src=$1 out=$2 tmp
154
+ local -i W=$3 H=$4 dw=$5 dh=$6 ox=$7 oy=$8 vx vy vw vh px py rc
155
+ vx=$(( ox < 0 ? -ox : 0 )) vy=$(( oy < 0 ? -oy : 0 ))
156
+ vw=$(( (dw < W - ox ? dw : W - ox) - vx )) vh=$(( (dh < H - oy ? dh : H - oy) - vy ))
157
+ px=$(( ox > 0 ? ox : 0 )) py=$(( oy > 0 ? oy : 0 ))
158
+ (( vw > 0 && vh > 0 )) || return 1
159
+ tmp=$(mktemp -d) || return 1
160
+ sips -z $dh $dw $src --out $tmp/a.png >/dev/null 2>&1 &&
161
+ sips -p $(( dh + 2 )) $(( dw + 2 )) $tmp/a.png --out $tmp/b.png >/dev/null 2>&1 &&
162
+ sips -c $vh $vw --cropOffset $(( vy + 1 )) $(( vx + 1 )) $tmp/b.png --out $tmp/c.png >/dev/null 2>&1 &&
163
+ sips -p $(( 2 * H - vh + 2 )) $(( 2 * W - vw + 2 )) $tmp/c.png --out $tmp/d.png >/dev/null 2>&1 &&
164
+ sips -c $H $W --cropOffset $(( H - vh + 1 - py )) $(( W - vw + 1 - px )) $tmp/d.png --out $tmp/e.png >/dev/null 2>&1 &&
165
+ mv -f $tmp/e.png $out
166
+ rc=$?
167
+ rm -rf $tmp
168
+ return $rc
169
+ }
170
+
171
+ __tt_bg_include() {
172
+ local conf=${TTHEME_CONFIG:h}/backgrounds/$1.conf line
173
+ local -a lines=() add=()
174
+ [[ -r $conf ]] && lines=("${(@f)$(<$conf)}")
175
+ for line in "config-file = ?$1.tune.conf" "config-file = ?$1.off.conf"; do
176
+ (( ${lines[(Ie)$line]} )) || add+=("$line")
177
+ done
178
+ (( ${#add} )) || return 0
179
+ mkdir -p ${conf:h} && print -rl -- "${lines[@]}" "${add[@]}" > $conf
180
+ }
181
+
182
+ __tt_bg_write() {
183
+ local name=$1 dir=${TTHEME_CONFIG:h}/backgrounds src=${bgsrc[$1]} size=${bgsize[$1]} shape img="" fit=contain f REPLY
184
+ local pos=${TTHEME_BG_POSITIONS[${bgpos[$1]}]}
185
+ local -i W=$(( (pw + 2 * bgmx) * bgcw )) H=$(( (ph + 2 * bgmy) * bgch ))
186
+ local -a wh fr
187
+ [[ -r $dir/$name.conf ]] || return 0
188
+ __tt_bg_include $name || return 1
189
+ if [[ "$size ${bgpos[$1]} ${bgop[$1]}" == "${bgdef[$1]}" ]]; then
190
+ rm -f -- $dir/$name.tune.conf
191
+ else
192
+ shape=$size
193
+ [[ $size == <20-100> && $pos != center ]] && ! __tt_bg_aligns && shape=window
194
+ case $shape in
195
+ fill) img=${bgfill[$1]} fit=cover ;;
196
+ 100) img=$src ;;
197
+ <20-99>)
198
+ __tt_bg_dim "$src" || return 1
199
+ wh=(${=bgdim[$src]})
200
+ img=${src%.png}@$size-$pos.png
201
+ __tt_bg_frame $wh[1] $wh[2] $wh[1] $wh[2] $size ${bgpos[$1]} contain
202
+ fr=(${=REPLY})
203
+ [[ $img -nt $src ]] || __tt_bg_bake "$src" "$img" $wh[1] $wh[2] $fr || return 1
204
+ ;;
205
+ *)
206
+ fit=cover
207
+ if [[ "$size ${bgpos[$1]}" == "${bgshotkey[$1]}" && -r ${bgshot[$1]} ]]; then
208
+ img=${bgshot[$1]}
209
+ else
210
+ __tt_bg_dim "$src" && (( W && H )) || return 1
211
+ wh=(${=bgdim[$src]})
212
+ img=${src%.png}@$size-$pos-${W}x$H.png
213
+ __tt_bg_frame $wh[1] $wh[2] $W $H $size ${bgpos[$1]} contain ${bgfocus[$1]}
214
+ fr=(${=REPLY})
215
+ [[ $img -nt $src ]] || __tt_bg_bake "$src" "$img" $W $H $fr || return 1
216
+ fi
217
+ ;;
218
+ esac
219
+ __tt_tilde "$img"
220
+ print -rl -- "background-image = $REPLY" "background-image-fit = $fit" "background-image-position = $pos" "background-image-opacity = ${bgop[$1]}" > $dir/$name.tune.conf || return 1
221
+ fi
222
+ if (( bgoff[$1] )); then
223
+ print -r -- "background-image =" > $dir/$name.off.conf || return 1
224
+ else
225
+ rm -f -- $dir/$name.off.conf
226
+ fi
227
+ if [[ $src == /*.png ]]; then
228
+ for f in ${src%.png}@<20-999>-*.png(N); do
229
+ [[ $f == "$img" || $f == "${bgbase[$1]}" ]] || rm -f -- $f
230
+ done
231
+ fi
232
+ return 0
233
+ }
234
+
235
+ __tt_pv_bg_open() {
236
+ bgcw=0 bgch=0 bginc="" bgrel=0 bgmx=0 bgmy=0 bganchor=0
237
+ local REPLY
238
+ __tt_bg_shown && bginc=$REPLY
239
+ __tt_bg_cells
240
+ }
241
+
242
+ __tt_pv_bg_show() {
243
+ (( bgcw )) || return 0
244
+ local name=$1 img="" op size fit=contain focus=-1 REPLY
245
+ local -a p=(${=TTHEME_PALETTE[$name]}) wh at
246
+ local -i cols=$(( pw + 2 * bgmx )) rows=$(( ph + 2 * bgmy ))
247
+ (( ${#p} >= 20 )) || return 0
248
+ (( $2 )) && { bgsent=(); bgshown="" bganchor=0 }
249
+ bgname=$name
250
+ __tt_bg_load $name
251
+ if (( ! bgrel )) && [[ $name == "$bginc" && "${bgsize[$name]} ${bgpos[$name]} ${bgop[$name]} ${bgoff[$name]}" == "${bgload[$name]}" ]]; then
252
+ printf '\e_Ga=d,d=i,i=1,q=2\e\\\e_Ga=d,d=i,i=2,q=2\e\\'
253
+ [[ -n $bgshown ]] && printf '\e_Ga=d,d=i,i=%d,q=2\e\\' $bgshown
254
+ bgshown=""
255
+ return 0
256
+ fi
257
+ op=${bgop[$name]} size=${bgsize[$name]}
258
+ if [[ $size == fill ]]; then
259
+ img=${bgfill[$name]} size=100 fit=cover
260
+ elif [[ "$size ${bgpos[$name]}" == "${bgshotkey[$name]}" && -r ${bgshot[$name]} ]]; then
261
+ img=${bgshot[$name]} size=100 fit=cover
262
+ else
263
+ img=${bgsrc[$name]} focus=${bgfocus[$name]}
264
+ fi
265
+ (( bgoff[$name] )) && img=""
266
+ local bg=${p[1]#\#}
267
+ local -i r=$(( 16#${bg:0:2} )) g=$(( 16#${bg:2:2} )) b=$(( 16#${bg:4:2} )) a=$(( (1.0 - op) * 255 + 0.5 ))
268
+ (( a < 0 )) && a=0
269
+ if (( bgrel && ! bganchor )); then
270
+ printf '\e_Ga=t,f=32,s=1,v=1,i=999999,q=2;AAAAAA==\e\\\e[H\e_Ga=p,i=999999,p=999999,c=1,r=1,C=1,z=-1073741828,q=2\e\\'
271
+ bganchor=1
272
+ fi
273
+ __tt_b64 $r $g $b
274
+ printf '\e_Ga=t,f=24,s=1,v=1,i=1,q=2;%s\e\\' "$REPLY"
275
+ __tt_bg_at 1 -1073741827 0 0 $cols $rows
276
+ __tt_b64 $r $g $b $a
277
+ printf '\e_Ga=t,f=32,s=1,v=1,i=2,q=2;%s\e\\' "$REPLY"
278
+ __tt_bg_at 2 -1073741825 0 0 $cols $rows
279
+ local id=""
280
+ if __tt_bg_dim "$img"; then
281
+ wh=(${=bgdim[$img]})
282
+ if __tt_bg_place $wh[1] $wh[2] $cols $rows $bgcw $bgch $size ${bgpos[$name]} $fit $focus; then
283
+ at=(${=REPLY})
284
+ __tt_bg_crop $img $wh[1] $wh[2] $at[6] $at[8] && id=${REPLY% *} at[6]=${REPLY##* }
285
+ fi
286
+ fi
287
+ [[ -n $bgshown && $bgshown != "$id" ]] && printf '\e_Ga=d,d=i,i=%d,q=2\e\\' $bgshown
288
+ bgshown=$id
289
+ [[ -n $id ]] || return 0
290
+ __tt_bg_at $id -1073741826 $(( at[1] - 1 )) $(( at[2] - 1 )) $at[3] $at[4] $at[5] $at[6] $at[7] $at[8]
291
+ }
292
+
293
+ __tt_bg_send() {
294
+ if [[ -z ${bgsent[$1]} ]]; then
295
+ bgsent[$1]=$(( ${#bgsent} + 3 ))
296
+ printf '\e_Ga=t,t=f,f=100,i=%d,q=2;%s\e\\' ${bgsent[$1]} "$(print -rn -- $1 | base64 | tr -d '\n')"
297
+ fi
298
+ REPLY=${bgsent[$1]}
299
+ }
300
+
301
+ __tt_pv_bg_fs() {
302
+ local name=$1
303
+ local -a wh fwh
304
+ local -i W=$(( (pw + 2 * bgmx) * bgcw )) H=$(( (ph + 2 * bgmy) * bgch )) kw kh
305
+ REPLY=0
306
+ (( W && H )) || return 1
307
+ __tt_bg_dim "${bgsrc[$name]}" && __tt_bg_dim "${bgfill[$name]}" || return 1
308
+ wh=(${=bgdim[${bgsrc[$name]}]}) fwh=(${=bgdim[${bgfill[$name]}]})
309
+ kw=$(( wh[1] < wh[2] * fwh[1] / fwh[2] ? wh[1] : wh[2] * fwh[1] / fwh[2] ))
310
+ kh=$(( kw * fwh[2] / fwh[1] ))
311
+ REPLY=$(( 100 * (W * kh > H * kw ? W * kh : H * kw) * wh[1] * wh[2] / (kw * kh * (W * wh[2] < H * wh[1] ? W * wh[2] : H * wh[1])) ))
312
+ }
313
+
314
+ __tt_pv_bg_adjust() {
315
+ (( bgcw )) && [[ -n $tune ]] || return 0
316
+ local name=$tune REPLY
317
+ __tt_bg_load $name
318
+ __tt_bg_image $name
319
+ __tt_bg_dim "$REPLY" || return 0
320
+ local size=${bgsize[$name]} op=${bgop[$name]}
321
+ local -i n=${2:-0} at=${bgpos[$name]} off=${bgoff[$name]} o=$(( ${bgop[$name]} * 100 + 0.5 )) m fs=0 bake=$+commands[sips]
322
+ local -a def=(${=bgdef[$name]})
323
+ __tt_pv_bg_fs $name && fs=$REPLY
324
+ case $1 in
325
+ on) off=$(( ! off )) ;;
326
+ def) size=$def[1] at=$def[2] op=$def[3] off=0 ;;
327
+ *)
328
+ (( off )) && return 0
329
+ case $1 in
330
+ size)
331
+ if (( n < 0 )); then
332
+ if [[ $size == fill ]]; then
333
+ (( fs )) || return 0
334
+ size=$(( bake && fs > 100 ? fs : 100 ))
335
+ n=$(( n + 1 ))
336
+ fi
337
+ if (( bake && n )); then
338
+ size=$(( size + n ))
339
+ (( size < 20 )) && size=20
340
+ fi
341
+ elif [[ $size != fill ]]; then
342
+ if (( ! bake || size + n > fs )); then
343
+ size=fill
344
+ else
345
+ size=$(( size + n ))
346
+ fi
347
+ fi
348
+ ;;
349
+ pos) at=$(( ((at - 1 + n) % 9 + 9) % 9 + 1 )) ;;
350
+ at) at=$n ;;
351
+ op)
352
+ m=$(( o + n ))
353
+ (( m < 0 )) && m=0
354
+ (( m > 100 )) && m=100
355
+ (( m != o )) && printf -v op '%d.%02d' $(( m / 100 )) $(( m % 100 ))
356
+ ;;
357
+ esac
358
+ ;;
359
+ esac
360
+ [[ $size == ${bgsize[$name]} && $at == ${bgpos[$name]} && $op == ${bgop[$name]} && $off == ${bgoff[$name]} ]] && return 0
361
+ if [[ $size != ${bgsize[$name]} ]]; then
362
+ osd=$size osdt=100
363
+ [[ $size == fill ]] || osd+=%
364
+ fi
365
+ bgsize[$name]=$size bgpos[$name]=$at bgop[$name]=$op bgoff[$name]=$off bgname=""
366
+ }
367
+
368
+ __tt_pv_bg_state() {
369
+ REPLY=""
370
+ (( bgcw )) || return 1
371
+ __tt_bg_load $1
372
+ __tt_bg_image $1
373
+ __tt_bg_dim "$REPLY" || { REPLY=""; return 1 }
374
+ if (( bgoff[$1] )); then
375
+ REPLY=off
376
+ else
377
+ __tt_bg_label $1
378
+ fi
379
+ }
380
+
381
+ __tt_pv_bg_findable() {
382
+ (( bgcw ))
383
+ }
384
+
385
+ __tt_pv_bg_find() {
386
+ local name=$1 err
387
+ local -i rc
388
+ __tt_pv_bg_close
389
+ err=$(__tt_cli find $name 2>&1 >/dev/tty)
390
+ rc=$?
391
+ err=${${err//$'\n'/ }## #}
392
+ resized=1 bgname="" bgshown="" bgsent=() bgdim=()
393
+ if (( rc == 1 )); then
394
+ msg=${err:-"find failed for $name"} msgt=300
395
+ fi
396
+ (( rc == 0 )) || return 1
397
+ unset "bgsrc[$name]"
398
+ __tt_bg_load $name
399
+ bgload[$name]="" bgedit[$name]=1
400
+ msg=${err:-"background · $name"} msgt=200
401
+ return 0
402
+ }
403
+
404
+ __tt_pv_bg_images() {
405
+ local -a shelf=(${TTHEME_CONFIG:h}/backgrounds/shelf/$1/*(N/))
406
+ REPLY=$(( ${#shelf} + 1 ))
407
+ }
408
+
409
+ __tt_pv_bg_image() {
410
+ local name=$tune act=$1 err REPLY
411
+ local -i rc
412
+ if [[ $act != drop ]]; then
413
+ __tt_pv_bg_images $name
414
+ (( REPLY > 1 )) || { msg="$name has one image" msgt=200; return 0 }
415
+ [[ "${bgsize[$name]} ${bgpos[$name]} ${bgop[$name]} ${bgoff[$name]}" == "$tsnap" ]] || __tt_bg_write $name
416
+ fi
417
+ bgname="" tune=""
418
+ __tt_pv_bg_close
419
+ err=$(__tt_cli image $name $act 2>&1)
420
+ rc=$?
421
+ err=${${err//$'\n'/ }## #}
422
+ resized=1 bgname="" bgshown="" bgsent=() bgdim=()
423
+ unset "bgsrc[$name]"
424
+ __tt_bg_load $name
425
+ bgload[$name]="" bgedit[$name]=1
426
+ msg=${err:-"background · $name"} msgt=$(( rc ? 300 : 200 ))
427
+ [[ -r ${TTHEME_CONFIG:h}/backgrounds/$name.conf ]] || return 0
428
+ tune=$name tf=1 tsnap="${bgsize[$name]} ${bgpos[$name]} ${bgop[$name]} ${bgoff[$name]}"
429
+ }
430
+
431
+ __tt_pv_bg_panel() {
432
+ local name=$1 z=$'\e[0m' b=$'\e[1m' d=$'\e[2m' c=$ac val sty REPLY
433
+ local -a labs=(size position opacity) at=(0 3 6)
434
+ local -i r0=$2 col=$3 end=$4 off=${bgoff[$1]} T=$(( $4 - $3 - 19 )) lo=100 hi=100 k i r knob pos=${bgpos[$1]} o
435
+ (( color )) || z= b= d= c=
436
+ (( T < 8 )) && T=8
437
+ (( $+commands[sips] )) && lo=20
438
+ __tt_pv_bg_fs $name && (( REPLY > hi )) && hi=$REPLY
439
+ for k in 1 2 3; do
440
+ r=$(( r0 + at[k] ))
441
+ sty=$d
442
+ (( tf == k && ! off )) && sty=$b
443
+ out+=$'\e['$r';'$col'H'
444
+ if (( tf == k && ! off )); then
445
+ out+=$c"▶"$z" "
446
+ else
447
+ out+=" "
448
+ fi
449
+ out+=$sty$labs[k]$z
450
+ if (( k == 2 )); then
451
+ for (( i = 1; i <= 9; i++ )); do
452
+ out+=$'\e['$(( r0 + 2 + (i - 1) / 3 ))';'$(( col + 12 + (i - 1) % 3 * 3 ))'H'
453
+ if (( ! color )); then
454
+ if (( i == pos )); then out+="#"; else out+="."; fi
455
+ elif (( i == pos && ! off )); then
456
+ out+=$b$c"■"$z
457
+ elif (( i == pos )); then
458
+ out+=$d"■"$z
459
+ else
460
+ out+=$d"·"$z
461
+ fi
462
+ done
463
+ val=${TTHEME_BG_POSITIONS[pos]}
464
+ else
465
+ if (( k == 1 )); then
466
+ if [[ ${bgsize[$name]} == fill ]]; then
467
+ knob=$(( T - 1 )) val=FILL
468
+ else
469
+ knob=$(( (${bgsize[$name]} - lo) * (T - 1) / (hi - lo + 1) )) val=${bgsize[$name]}%
470
+ fi
471
+ else
472
+ o=$(( ${bgop[$name]} * 100 + 0.5 ))
473
+ knob=$(( o * (T - 1) / 100 )) val=${bgop[$name]}
474
+ fi
475
+ (( knob < 0 )) && knob=0
476
+ (( knob > T - 1 )) && knob=$(( T - 1 ))
477
+ out+=$'\e['$r';'$(( col + 12 ))'H'
478
+ if (( ! color )); then
479
+ out+=${(l:knob::=:)}"O"${(l:$(( T - 1 - knob ))::-:)}
480
+ elif (( off )); then
481
+ out+=$d${(l:knob::━:)}"●"${(l:$(( T - 1 - knob ))::─:)}$z
482
+ else
483
+ out+=$c${(l:knob::━:)}$b"●"$z$d${(l:$(( T - 1 - knob ))::─:)}$z
484
+ fi
485
+ fi
486
+ out+=$'\e['$r';'$(( end - ${#val} + 1 ))'H'$sty$val$z
487
+ done
488
+ }
489
+
490
+ __tt_pv_bg_close() {
491
+ (( bgcw )) && printf '\e_Ga=d,d=A,q=2\e\\'
492
+ [[ -z $bgcut ]] || { rm -rf -- $bgcut; bgcut="" }
493
+ }
494
+
495
+ __tt_pv_bg_save() {
496
+ local name msg REPLY
497
+ local -a saved=()
498
+ (( ${#bgedit} )) || return 0
499
+ for name in ${(ok)bgedit}; do
500
+ if ! __tt_bg_write $name; then
501
+ print -u2 "ttheme: could not save the background of $name"
502
+ continue
503
+ fi
504
+ saved+=($name)
505
+ if [[ ! -r ${TTHEME_CONFIG:h}/backgrounds/$name.conf ]]; then
506
+ msg="background · $name none"
507
+ elif (( bgoff[$name] )); then
508
+ msg="background · $name off"
509
+ else
510
+ __tt_bg_label $name
511
+ msg="background · $name $REPLY"
512
+ fi
513
+ if __tt_color; then
514
+ printf '\033[2m%s\033[0m\n' "$msg"
515
+ else
516
+ print -r -- "$msg"
517
+ fi
518
+ done
519
+ (( ${#saved} )) && __tt_bg_saved $saved
520
+ return 0
521
+ }
@@ -18,6 +18,10 @@ __tt_osc_reset() { printf '\033]104\033\\\033]110\033\\\033]111\033\\\033]112\03
18
18
 
19
19
  __tt_apply() { __tt_osc_apply "$@" }
20
20
 
21
+ __tt_shown() { return 1 }
22
+
23
+ __tt_keepable() { return 1 }
24
+
21
25
  __tt_pv_bg_open() { : }
22
26
 
23
27
  __tt_pv_bg_show() { : }