@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,232 +1,20 @@
1
- __tt_reload() {
2
- local pid=$PPID ppid comm
3
- while (( pid > 1 )); do
4
- read -r ppid comm <<< "$(ps -o ppid=,comm= -p $pid)"
5
- if [[ ${comm:t} == ghostty ]]; then
6
- kill -USR2 $pid
7
- return
8
- fi
9
- pid=$ppid
10
- done
11
- pkill -USR2 -x ghostty 2>/dev/null
12
- }
1
+ source $TTHEME_HOME/adapters/_bg.zsh
13
2
 
14
- typeset -ga TTHEME_BG_POSITIONS=(top-left top-center top-right center-left center center-right bottom-left bottom-center bottom-right)
15
-
16
- __tt_b64() {
17
- local t=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ out="" i n
18
- local -a b=("$@")
19
- for (( i = 1; i <= ${#b}; i += 3 )); do
20
- n=$(( (b[i] << 16) | (${b[i+1]:-0} << 8) | ${b[i+2]:-0} ))
21
- out+=${t:$(( (n >> 18) & 63 )):1}${t:$(( (n >> 12) & 63 )):1}
22
- if (( i + 1 <= ${#b} )); then out+=${t:$(( (n >> 6) & 63 )):1}; else out+='='; fi
23
- if (( i + 2 <= ${#b} )); then out+=${t:$(( n & 63 )):1}; else out+='='; fi
24
- done
25
- REPLY=$out
26
- }
27
-
28
- __tt_bg_frame() {
29
- 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
30
- wide=$(( W * ih >= H * iw ))
31
- [[ $7 == contain ]] && wide=$(( ! wide ))
32
- if (( wide )); then
33
- dw=$(( s * W / 100 )) dh=$(( s * W * ih / (100 * iw) ))
34
- else
35
- dh=$(( s * H / 100 )) dw=$(( s * H * iw / (100 * ih) ))
36
- fi
37
- ox=$(( ax * (W - dw) / 2 )) oy=$(( ay * (H - dh) / 2 ))
38
- if (( f >= 0 )); then
39
- (( dw > W )) && ox=$(( (W - dw) / 2 ))
40
- if (( dh > H )); then
41
- oy=$(( H / 2 - f * dh / 100 ))
42
- (( oy > 0 )) && oy=0
43
- (( oy < H - dh )) && oy=$(( H - dh ))
44
- fi
45
- fi
46
- REPLY="$dw $dh $ox $oy"
47
- }
48
-
49
- __tt_bg_place() {
50
- local -i cw=$5 ch=$6 W=$(( $3 * $5 )) H=$(( $4 * $6 )) dw dh sx sy c0 c1 r0 r1
51
- local -a fr
52
- __tt_bg_frame $1 $2 $W $H $7 $8 $9 ${10:--1}
53
- fr=(${=REPLY})
54
- dw=$fr[1] dh=$fr[2] sx=$fr[3] sy=$fr[4]
55
- c0=$(( ((sx > 0 ? sx : 0) + cw - 1) / cw )) c1=$(( (sx + dw < W ? sx + dw : W) / cw ))
56
- r0=$(( ((sy > 0 ? sy : 0) + ch - 1) / ch )) r1=$(( (sy + dh < H ? sy + dh : H) / ch ))
57
- (( c1 > c0 && r1 > r0 )) || return 1
58
- 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 ))"
59
- }
60
-
61
- __tt_bg_at() {
62
- local src=""
63
- (( $# > 7 )) && src=",x=$8,y=$9,w=${10},h=${11}"
64
- if (( bgrel )); then
65
- printf '\e_Ga=p,i=%d,p=%d,P=999999,Q=1,H=%d,V=%d,c=%d,r=%d%s,C=1,z=%d,q=2\e\\' $1 $2 $(( $4 - bgmx )) $(( $5 - bgmy )) $6 $7 "$src" $3
66
- else
67
- printf '\e[%d;%dH\e_Ga=p,i=%d,p=%d,c=%d,r=%d%s,C=1,z=%d,q=2\e\\' $(( $5 + 1 )) $(( $4 + 1 )) $1 $2 $6 $7 "$src" $3
68
- fi
69
- }
70
-
71
- __tt_bg_path() {
72
- local p=${${1#\"}%\"}
73
- p=${p/#\~\//$HOME/}
74
- [[ -z $p || $p == /* ]] || p=${TTHEME_CONFIG:h}/backgrounds/$p
75
- REPLY=$p
76
- }
3
+ __tt_keepable() { return 0 }
77
4
 
78
- __tt_bg_load() {
79
- local name=$1 dir=${TTHEME_CONFIG:h}/backgrounds img="" fit=contain op=1 pos=center f line stem="" size=100 REPLY
80
- local -i at=5
81
- local -a fills
82
- (( ${+bgsrc[$name]} )) && return 0
83
- bgfrom[$name]=""
84
- for f in $dir/$name.conf $dir/$name.tune.conf; do
85
- if [[ -r $f ]]; then
86
- for line in "${(@f)$(<$f)}"; do
87
- case $line in
88
- '# from '*) [[ $f == *.tune.conf ]] || bgfrom[$name]=${(j: :)${${=line#\# from }[1,2]}} ;;
89
- 'background-image = '*|'background-image='*) img=${${line#*=}# } ;;
90
- 'background-image-fit = '*|'background-image-fit='*) fit=${${line#*=}# } ;;
91
- 'background-image-opacity = '*|'background-image-opacity='*) op=${${line#*=}# } ;;
92
- 'background-image-position = '*|'background-image-position='*) pos=${${line#*=}# } ;;
93
- esac
94
- done
95
- fi
96
- [[ $op == <->(|.<->) ]] || op=1
97
- [[ $pos == center-center ]] && pos=center
98
- at=${TTHEME_BG_POSITIONS[(Ie)$pos]}
99
- (( at )) || at=5
100
- __tt_bg_path "$img"
101
- size=100 stem=""
102
- case $REPLY in
103
- *@fill-<0-100>.png) stem=${REPLY%@fill-*} size=fill ;;
104
- *@<101-999>-*-<->x<->.png|*@<20-99>-*.png) stem=${REPLY%@*} size=${${REPLY##*@}%%-*} ;;
105
- *.png) stem=${REPLY%.png}; [[ $fit == cover ]] && size=fill ;;
106
- esac
107
- [[ $f == *.tune.conf ]] || bgdef[$name]="$size $at $op" bgbase[$name]=$REPLY
108
- done
109
- bgsize[$name]=$size bgpos[$name]=$at bgop[$name]=$op bgoff[$name]=0 bgshot[$name]="" bgshotkey[$name]="" bgfocus[$name]=50
110
- [[ -e $dir/$name.off.conf ]] && bgoff[$name]=1
111
- bgload[$name]="$size $at $op ${bgoff[$name]}"
112
- [[ $size == <101-> ]] && bgshot[$name]=$REPLY bgshotkey[$name]="$size $at"
113
- if [[ -n $stem ]]; then
114
- bgsrc[$name]=$stem.png bgfill[$name]=$stem.png
115
- fills=($stem@fill-<0-100>.png(N))
116
- (( ${#fills} )) && bgfill[$name]=$fills[1] bgfocus[$name]=${${fills[1]##*@fill-}%.png}
117
- else
118
- bgsrc[$name]=$REPLY bgfill[$name]=$REPLY
119
- fi
120
- }
121
-
122
- __tt_bg_image() {
123
- REPLY=${bgsrc[$1]}
124
- [[ ${bgsize[$1]} == fill ]] && REPLY=${bgfill[$1]}
125
- }
126
-
127
- __tt_bg_label() {
128
- local size=${bgsize[$1]}
129
- [[ $size == fill ]] || size+=%
130
- REPLY="$size · ${TTHEME_BG_POSITIONS[${bgpos[$1]}]} · ${bgop[$1]}"
131
- }
132
-
133
- __tt_bg_dim() {
134
- local img=$1
135
- local -a d
136
- [[ -n $img && -r $img ]] || return 1
137
- if [[ -z ${bgdim[$img]} ]]; then
138
- d=($(od -An -N24 -tu1 -- $img 2>/dev/null))
139
- if (( ${#d} == 24 && d[1] == 137 && d[2] == 80 && d[3] == 78 && d[4] == 71 )); then
140
- bgdim[$img]="$(( (d[17] << 24) | (d[18] << 16) | (d[19] << 8) | d[20] )) $(( (d[21] << 24) | (d[22] << 16) | (d[23] << 8) | d[24] ))"
141
- else
142
- bgdim[$img]=-
143
- fi
144
- fi
145
- [[ ${bgdim[$img]} != - ]]
146
- }
147
-
148
- __tt_bg_bake() {
149
- local src=$1 out=$2 tmp
150
- local -i W=$3 H=$4 dw=$5 dh=$6 ox=$7 oy=$8 vx vy vw vh px py rc
151
- vx=$(( ox < 0 ? -ox : 0 )) vy=$(( oy < 0 ? -oy : 0 ))
152
- vw=$(( (dw < W - ox ? dw : W - ox) - vx )) vh=$(( (dh < H - oy ? dh : H - oy) - vy ))
153
- px=$(( ox > 0 ? ox : 0 )) py=$(( oy > 0 ? oy : 0 ))
154
- (( vw > 0 && vh > 0 )) || return 1
155
- tmp=$(mktemp -d) || return 1
156
- sips -z $dh $dw $src --out $tmp/a.png >/dev/null 2>&1 &&
157
- sips -p $(( dh + 2 )) $(( dw + 2 )) $tmp/a.png --out $tmp/b.png >/dev/null 2>&1 &&
158
- sips -c $vh $vw --cropOffset $(( vy + 1 )) $(( vx + 1 )) $tmp/b.png --out $tmp/c.png >/dev/null 2>&1 &&
159
- sips -p $(( 2 * H - vh + 2 )) $(( 2 * W - vw + 2 )) $tmp/c.png --out $tmp/d.png >/dev/null 2>&1 &&
160
- sips -c $H $W --cropOffset $(( H - vh + 1 - py )) $(( W - vw + 1 - px )) $tmp/d.png --out $tmp/e.png >/dev/null 2>&1 &&
161
- mv -f $tmp/e.png $out
162
- rc=$?
163
- rm -rf $tmp
164
- return $rc
165
- }
166
-
167
- __tt_bg_include() {
168
- local conf=${TTHEME_CONFIG:h}/backgrounds/$1.conf line
169
- local -a lines=() add=()
170
- [[ -r $conf ]] && lines=("${(@f)$(<$conf)}")
171
- for line in "config-file = ?$1.tune.conf" "config-file = ?$1.off.conf"; do
172
- (( ${lines[(Ie)$line]} )) || add+=("$line")
173
- done
174
- (( ${#add} )) || return 0
175
- mkdir -p ${conf:h} && print -rl -- "${lines[@]}" "${add[@]}" > $conf
176
- }
5
+ __tt_bg_shown() { __tt_ghostty_shown }
177
6
 
178
- __tt_bg_write() {
179
- local name=$1 dir=${TTHEME_CONFIG:h}/backgrounds src=${bgsrc[$1]} size=${bgsize[$1]} img="" fit=contain f REPLY
180
- local pos=${TTHEME_BG_POSITIONS[${bgpos[$1]}]}
181
- local -i W=$(( (pw + 2 * bgmx) * bgcw )) H=$(( (ph + 2 * bgmy) * bgch ))
182
- local -a wh fr
183
- __tt_bg_include $name || return 1
184
- if [[ "$size ${bgpos[$1]} ${bgop[$1]}" == "${bgdef[$1]}" ]]; then
185
- rm -f -- $dir/$name.tune.conf
186
- else
187
- case $size in
188
- fill) img=${bgfill[$1]} fit=cover ;;
189
- 100) img=$src ;;
190
- <20-99>)
191
- __tt_bg_dim "$src" || return 1
192
- wh=(${=bgdim[$src]})
193
- img=${src%.png}@$size-$pos.png
194
- __tt_bg_frame $wh[1] $wh[2] $wh[1] $wh[2] $size ${bgpos[$1]} contain
195
- fr=(${=REPLY})
196
- [[ $img -nt $src ]] || __tt_bg_bake "$src" "$img" $wh[1] $wh[2] $fr || return 1
197
- ;;
198
- *)
199
- fit=cover
200
- if [[ "$size ${bgpos[$1]}" == "${bgshotkey[$1]}" && -r ${bgshot[$1]} ]]; then
201
- img=${bgshot[$1]}
202
- else
203
- __tt_bg_dim "$src" && (( W && H )) || return 1
204
- wh=(${=bgdim[$src]})
205
- img=${src%.png}@$size-$pos-${W}x$H.png
206
- __tt_bg_frame $wh[1] $wh[2] $W $H $size ${bgpos[$1]} contain ${bgfocus[$1]}
207
- fr=(${=REPLY})
208
- [[ $img -nt $src ]] || __tt_bg_bake "$src" "$img" $W $H $fr || return 1
209
- fi
210
- ;;
211
- esac
212
- __tt_tilde "$img"
213
- print -rl -- "background-image = $REPLY" "background-image-fit = $fit" "background-image-position = $pos" "background-image-opacity = ${bgop[$1]}" > $dir/$name.tune.conf || return 1
214
- fi
215
- if (( bgoff[$1] )); then
216
- print -r -- "background-image =" > $dir/$name.off.conf || return 1
217
- else
218
- rm -f -- $dir/$name.off.conf
219
- fi
220
- if [[ $src == /*.png ]]; then
221
- for f in ${src%.png}@<20-999>-*.png(N); do
222
- [[ $f == "$img" || $f == "${bgbase[$1]}" ]] || rm -f -- $f
223
- done
224
- fi
225
- return 0
7
+ __tt_shown() {
8
+ local dir=${TTHEME_CONFIG:h}/backgrounds was REPLY
9
+ __tt_bg_shown
10
+ was=$REPLY
11
+ [[ $was == $1 ]] && return 1
12
+ [[ -r $dir/$1.conf || ( -n $was && -r $dir/$was.conf ) ]] || return 1
13
+ [[ -d $dir ]] || mkdir -p $dir || return 1
14
+ print -r -- "config-file = ?$1.conf" > $dir/shown.conf
226
15
  }
227
16
 
228
- __tt_pv_bg_open() {
229
- bgcw=0 bgch=0 bginc="" bgrel=0 bgmx=0 bgmy=0 bganchor=0
17
+ __tt_bg_cells() {
230
18
  local fd saved resp="" line c v f
231
19
  local -i px=2 py=2 fs=0 sc=2
232
20
  for f in ${XDG_CONFIG_HOME:-$HOME/.config}/ghostty/config ${TTHEME_CONFIG:h}/ttheme.conf; do
@@ -234,7 +22,6 @@ __tt_pv_bg_open() {
234
22
  for line in "${(@f)$(<$f)}"; do
235
23
  v=${${line#*=}// /}
236
24
  case $line in
237
- 'config-file = ?'*'/backgrounds/'*'.conf') bginc=${${line:t}%.conf} ;;
238
25
  window-padding-x*=*) [[ $v == <->(|,<->) ]] && px=$(( ${v%%,*} > ${v##*,} ? ${v%%,*} : ${v##*,} )) ;;
239
26
  window-padding-y*=*) [[ $v == <->(|,<->) ]] && py=$(( ${v%%,*} > ${v##*,} ? ${v%%,*} : ${v##*,} )) ;;
240
27
  font-size*=*) [[ $v == <->(|.<->) ]] && fs=${v%%.*} ;;
@@ -260,276 +47,7 @@ __tt_pv_bg_open() {
260
47
  bgmx=$(( (px * sc + bgcw - 1) / bgcw + 1 )) bgmy=$(( (py * sc + bgch - 1) / bgch + 1 ))
261
48
  }
262
49
 
263
- __tt_pv_bg_show() {
264
- (( bgcw )) || return 0
265
- local name=$1 img="" op size fit=contain focus=-1 REPLY
266
- local -a p=(${=TTHEME_PALETTE[$name]}) wh at
267
- local -i cols=$(( pw + 2 * bgmx )) rows=$(( ph + 2 * bgmy ))
268
- (( ${#p} >= 20 )) || return 0
269
- (( $2 )) && { bgsent=(); bgshown="" bganchor=0 }
270
- bgname=$name
271
- __tt_bg_load $name
272
- if (( ! bgrel )) && [[ $name == "$bginc" && "${bgsize[$name]} ${bgpos[$name]} ${bgop[$name]} ${bgoff[$name]}" == "${bgload[$name]}" ]]; then
273
- printf '\e_Ga=d,d=i,i=1,q=2\e\\\e_Ga=d,d=i,i=2,q=2\e\\'
274
- [[ -n $bgshown ]] && printf '\e_Ga=d,d=i,i=%d,q=2\e\\' ${bgsent[$bgshown]}
275
- bgshown=""
276
- return 0
277
- fi
278
- op=${bgop[$name]} size=${bgsize[$name]}
279
- if [[ $size == fill ]]; then
280
- img=${bgfill[$name]} size=100 fit=cover
281
- elif [[ $size == <101-> && "$size ${bgpos[$name]}" == "${bgshotkey[$name]}" && -r ${bgshot[$name]} ]]; then
282
- img=${bgshot[$name]} size=100 fit=cover
283
- else
284
- img=${bgsrc[$name]} focus=${bgfocus[$name]}
285
- fi
286
- (( bgoff[$name] )) && img=""
287
- local bg=${p[1]#\#}
288
- local -i r=$(( 16#${bg:0:2} )) g=$(( 16#${bg:2:2} )) b=$(( 16#${bg:4:2} )) a=$(( (1.0 - op) * 255 + 0.5 ))
289
- (( a < 0 )) && a=0
290
- if (( bgrel && ! bganchor )); then
291
- printf '\e_Ga=t,f=32,s=1,v=1,i=999999,q=2;AAAAAA==\e\\\e[H\e_Ga=p,i=999999,p=1,c=1,r=1,C=1,z=-1073741828,q=2\e\\'
292
- bganchor=1
293
- fi
294
- __tt_b64 $r $g $b
295
- printf '\e_Ga=t,f=24,s=1,v=1,i=1,q=2;%s\e\\' "$REPLY"
296
- __tt_bg_at 1 1 -1073741827 0 0 $cols $rows
297
- __tt_b64 $r $g $b $a
298
- printf '\e_Ga=t,f=32,s=1,v=1,i=2,q=2;%s\e\\' "$REPLY"
299
- __tt_bg_at 2 1 -1073741825 0 0 $cols $rows
300
- __tt_bg_dim "$img" || img=""
301
- if [[ -n $bgshown && $bgshown != "$img" ]]; then
302
- printf '\e_Ga=d,d=i,i=%d,q=2\e\\' ${bgsent[$bgshown]}
303
- bgshown=""
304
- fi
305
- [[ -n $img ]] || return 0
306
- if [[ -z ${bgsent[$img]} ]]; then
307
- bgsent[$img]=$(( ${#bgsent} + 3 ))
308
- printf '\e_Ga=t,t=f,f=100,i=%d,q=2;%s\e\\' ${bgsent[$img]} "$(print -rn -- $img | base64 | tr -d '\n')"
309
- fi
310
- wh=(${=bgdim[$img]})
311
- if __tt_bg_place $wh[1] $wh[2] $cols $rows $bgcw $bgch $size ${bgpos[$name]} $fit $focus; then
312
- at=(${=REPLY})
313
- __tt_bg_at ${bgsent[$img]} 1 -1073741826 $(( at[1] - 1 )) $(( at[2] - 1 )) $at[3] $at[4] $at[5] $at[6] $at[7] $at[8]
314
- else
315
- printf '\e_Ga=d,d=i,i=%d,q=2\e\\' ${bgsent[$img]}
316
- fi
317
- bgshown=$img
318
- }
319
-
320
- __tt_pv_bg_fs() {
321
- local name=$1
322
- local -a wh fwh
323
- local -i W=$(( (pw + 2 * bgmx) * bgcw )) H=$(( (ph + 2 * bgmy) * bgch )) kw kh
324
- REPLY=0
325
- (( W && H )) || return 1
326
- __tt_bg_dim "${bgsrc[$name]}" && __tt_bg_dim "${bgfill[$name]}" || return 1
327
- wh=(${=bgdim[${bgsrc[$name]}]}) fwh=(${=bgdim[${bgfill[$name]}]})
328
- kw=$(( wh[1] < wh[2] * fwh[1] / fwh[2] ? wh[1] : wh[2] * fwh[1] / fwh[2] ))
329
- kh=$(( kw * fwh[2] / fwh[1] ))
330
- 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])) ))
331
- }
332
-
333
- __tt_pv_bg_adjust() {
334
- (( bgcw )) && [[ -n $tune ]] || return 0
335
- local name=$tune REPLY
336
- __tt_bg_load $name
337
- __tt_bg_image $name
338
- __tt_bg_dim "$REPLY" || return 0
339
- local size=${bgsize[$name]} op=${bgop[$name]}
340
- local -i n=${2:-0} at=${bgpos[$name]} off=${bgoff[$name]} o=$(( ${bgop[$name]} * 100 + 0.5 )) m fs=0 bake=$+commands[sips]
341
- local -a def=(${=bgdef[$name]})
342
- __tt_pv_bg_fs $name && fs=$REPLY
343
- case $1 in
344
- on) off=$(( ! off )) ;;
345
- def) size=$def[1] at=$def[2] op=$def[3] off=0 ;;
346
- *)
347
- (( off )) && return 0
348
- case $1 in
349
- size)
350
- if (( n < 0 )); then
351
- if [[ $size == fill ]]; then
352
- (( fs )) || return 0
353
- size=$(( bake && fs > 100 ? fs : 100 ))
354
- n=$(( n + 1 ))
355
- fi
356
- if (( bake && n )); then
357
- size=$(( size + n ))
358
- (( size < 20 )) && size=20
359
- fi
360
- elif [[ $size != fill ]]; then
361
- if (( ! bake || size + n > fs )); then
362
- size=fill
363
- else
364
- size=$(( size + n ))
365
- fi
366
- fi
367
- ;;
368
- pos) at=$(( ((at - 1 + n) % 9 + 9) % 9 + 1 )) ;;
369
- at) at=$n ;;
370
- op)
371
- m=$(( o + n ))
372
- (( m < 0 )) && m=0
373
- (( m > 100 )) && m=100
374
- (( m != o )) && printf -v op '%d.%02d' $(( m / 100 )) $(( m % 100 ))
375
- ;;
376
- esac
377
- ;;
378
- esac
379
- [[ $size == ${bgsize[$name]} && $at == ${bgpos[$name]} && $op == ${bgop[$name]} && $off == ${bgoff[$name]} ]] && return 0
380
- if [[ $size != ${bgsize[$name]} ]]; then
381
- osd=$size osdt=100
382
- [[ $size == fill ]] || osd+=%
383
- fi
384
- bgsize[$name]=$size bgpos[$name]=$at bgop[$name]=$op bgoff[$name]=$off bgname=""
385
- }
386
-
387
- __tt_pv_bg_state() {
388
- REPLY=""
389
- (( bgcw )) || return 1
390
- __tt_bg_load $1
391
- __tt_bg_image $1
392
- __tt_bg_dim "$REPLY" || { REPLY=""; return 1 }
393
- if (( bgoff[$1] )); then
394
- REPLY=off
395
- else
396
- __tt_bg_label $1
397
- fi
398
- }
399
-
400
- __tt_pv_bg_findable() {
401
- (( bgcw ))
402
- }
403
-
404
- __tt_pv_bg_find() {
405
- local name=$1 err
406
- local -i rc
407
- __tt_pv_bg_close
408
- err=$(__tt_cli find $name 2>&1 >/dev/tty)
409
- rc=$?
410
- err=${${err//$'\n'/ }## #}
411
- resized=1 bgname="" bgshown="" bgsent=() bgdim=()
412
- if (( rc == 1 )); then
413
- msg=${err:-"find failed for $name"} msgt=300
414
- fi
415
- (( rc == 0 )) || return 1
416
- unset "bgsrc[$name]"
417
- __tt_bg_load $name
418
- bgload[$name]="" bgedit[$name]=1
419
- msg=${err:-"background · $name"} msgt=200
420
- return 0
421
- }
422
-
423
- __tt_pv_bg_images() {
424
- local -a shelf=(${TTHEME_CONFIG:h}/backgrounds/shelf/$1/*(N/))
425
- REPLY=$(( ${#shelf} + 1 ))
426
- }
427
-
428
- __tt_pv_bg_image() {
429
- local name=$tune act=$1 err REPLY
430
- local -i rc
431
- if [[ $act != drop ]]; then
432
- __tt_pv_bg_images $name
433
- (( REPLY > 1 )) || { msg="$name has one image" msgt=200; return 0 }
434
- fi
435
- __tt_pv_untune
436
- __tt_pv_bg_close
437
- err=$(__tt_cli image $name $act 2>&1)
438
- rc=$?
439
- err=${${err//$'\n'/ }## #}
440
- resized=1 bgname="" bgshown="" bgsent=() bgdim=()
441
- unset "bgsrc[$name]"
442
- __tt_bg_load $name
443
- bgload[$name]="" bgedit[$name]=1
444
- msg=${err:-"background · $name"} msgt=$(( rc ? 300 : 200 ))
445
- [[ -r ${TTHEME_CONFIG:h}/backgrounds/$name.conf ]] || return 0
446
- tune=$name tf=1 tsnap="${bgsize[$name]} ${bgpos[$name]} ${bgop[$name]} ${bgoff[$name]}"
447
- }
448
-
449
- __tt_pv_bg_panel() {
450
- local name=$1 z=$'\e[0m' b=$'\e[1m' d=$'\e[2m' c=$ac val sty REPLY
451
- local -a labs=(size position opacity) at=(0 3 6)
452
- 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
453
- (( color )) || z= b= d= c=
454
- (( T < 8 )) && T=8
455
- (( $+commands[sips] )) && lo=20
456
- __tt_pv_bg_fs $name && (( REPLY > hi )) && hi=$REPLY
457
- for k in 1 2 3; do
458
- r=$(( r0 + at[k] ))
459
- sty=$d
460
- (( tf == k && ! off )) && sty=$b
461
- out+=$'\e['$r';'$col'H'
462
- if (( tf == k && ! off )); then
463
- out+=$c"▶"$z" "
464
- else
465
- out+=" "
466
- fi
467
- out+=$sty$labs[k]$z
468
- if (( k == 2 )); then
469
- for (( i = 1; i <= 9; i++ )); do
470
- out+=$'\e['$(( r0 + 2 + (i - 1) / 3 ))';'$(( col + 12 + (i - 1) % 3 * 3 ))'H'
471
- if (( ! color )); then
472
- if (( i == pos )); then out+="#"; else out+="."; fi
473
- elif (( i == pos && ! off )); then
474
- out+=$b$c"■"$z
475
- elif (( i == pos )); then
476
- out+=$d"■"$z
477
- else
478
- out+=$d"·"$z
479
- fi
480
- done
481
- val=${TTHEME_BG_POSITIONS[pos]}
482
- else
483
- if (( k == 1 )); then
484
- if [[ ${bgsize[$name]} == fill ]]; then
485
- knob=$(( T - 1 )) val=FILL
486
- else
487
- knob=$(( (${bgsize[$name]} - lo) * (T - 1) / (hi - lo + 1) )) val=${bgsize[$name]}%
488
- fi
489
- else
490
- o=$(( ${bgop[$name]} * 100 + 0.5 ))
491
- knob=$(( o * (T - 1) / 100 )) val=${bgop[$name]}
492
- fi
493
- (( knob < 0 )) && knob=0
494
- (( knob > T - 1 )) && knob=$(( T - 1 ))
495
- out+=$'\e['$r';'$(( col + 12 ))'H'
496
- if (( ! color )); then
497
- out+=${(l:knob::=:)}"O"${(l:$(( T - 1 - knob ))::-:)}
498
- elif (( off )); then
499
- out+=$d${(l:knob::━:)}"●"${(l:$(( T - 1 - knob ))::─:)}$z
500
- else
501
- out+=$c${(l:knob::━:)}$b"●"$z$d${(l:$(( T - 1 - knob ))::─:)}$z
502
- fi
503
- fi
504
- out+=$'\e['$r';'$(( end - ${#val} + 1 ))'H'$sty$val$z
505
- done
506
- }
507
-
508
- __tt_pv_bg_close() {
509
- (( bgcw )) && printf '\e_Ga=d,d=A,q=2\e\\'
510
- }
511
-
512
- __tt_pv_bg_save() {
513
- local name msg reload=0 REPLY
514
- (( ${#bgedit} )) || return 0
515
- for name in ${(ok)bgedit}; do
516
- if ! __tt_bg_write $name; then
517
- print -u2 "ttheme: could not save the background of $name"
518
- continue
519
- fi
520
- [[ $name == "$bginc" ]] && reload=1
521
- if (( bgoff[$name] )); then
522
- msg="background · $name off"
523
- else
524
- __tt_bg_label $name
525
- msg="background · $name $REPLY"
526
- fi
527
- if __tt_color; then
528
- printf '\033[2m%s\033[0m\n' "$msg"
529
- else
530
- print -r -- "$msg"
531
- fi
532
- done
533
- (( reload )) && __tt_reload
534
- return 0
50
+ __tt_bg_crop() {
51
+ __tt_bg_send $1
52
+ REPLY="$REPLY $4"
535
53
  }
@@ -0,0 +1,67 @@
1
+ source $TTHEME_HOME/adapters/_bg.zsh
2
+
3
+ if (( ! ${+TTHEME_ITERM_SHOWN} )); then
4
+ typeset -gx TTHEME_ITERM_SHOWN=""
5
+ [[ $ITERM_PROFILE == 'ttheme · '* ]] && TTHEME_ITERM_SHOWN=${ITERM_PROFILE#ttheme · }
6
+ fi
7
+
8
+ __tt_keepable() { return 0 }
9
+
10
+ __tt_bg_shown() {
11
+ REPLY=$TTHEME_ITERM_SHOWN
12
+ [[ $REPLY == default ]] && REPLY=$TTHEME_STARTUP
13
+ [[ -n $REPLY ]]
14
+ }
15
+
16
+ __tt_shown() {
17
+ local dir=${TTHEME_CONFIG:h}/backgrounds was REPLY
18
+ __tt_bg_shown
19
+ was=$REPLY
20
+ [[ $2 != force && $was == $1 ]] && return 1
21
+ [[ -r $dir/$1.conf || ( -n $was && -r $dir/$was.conf ) ]] || return 1
22
+ (( ${TTHEME_ORDER[(Ie)$1]} )) || return 1
23
+ printf '\e]1337;SetProfile=ttheme · %s\a' $1
24
+ TTHEME_ITERM_SHOWN=$1
25
+ return 1
26
+ }
27
+
28
+ __tt_bg_cells() {
29
+ local fd saved resp="" c
30
+ local -a p
31
+ exec {fd}<>/dev/tty 2>/dev/null || return 0
32
+ saved=$(stty -g <&$fd 2>/dev/null)
33
+ stty raw -echo min 0 time 3 <&$fd 2>/dev/null
34
+ printf '\e]1337;ReportCellSize\a' >&$fd
35
+ while IFS= read -r -s -k 1 -t 1 -u $fd c 2>/dev/null; do
36
+ resp+=$c
37
+ [[ $resp == *ReportCellSize=*($'\a'|$'\e\\') ]] && break
38
+ done
39
+ stty "$saved" <&$fd 2>/dev/null
40
+ exec {fd}>&-
41
+ [[ $resp == *ReportCellSize=*($'\a'|$'\e\\') ]] || return 0
42
+ p=(${(s:;:)${${resp##*ReportCellSize=}%%($'\a'|$'\e\\')*}})
43
+ (( ${#p} == 3 )) || return 0
44
+ bgch=${$(( p[1] * p[3] + 0.5 ))%.*} bgcw=${$(( p[2] * p[3] + 0.5 ))%.*}
45
+ }
46
+
47
+ __tt_bg_crop() {
48
+ local img=$1 band
49
+ local -i iw=$2 ih=$3 y=$4 h=$5 d=$(( 2 * $4 + $5 - $3 ))
50
+ if (( d * d <= 1 || ! $+commands[sips] )); then
51
+ __tt_bg_send $img
52
+ REPLY="$REPLY $y"
53
+ return 0
54
+ fi
55
+ [[ -n $bgcut ]] || bgcut=$(mktemp -d) || return 1
56
+ band=$bgcut/${${img:t}%.png}-$y-$h.png
57
+ if [[ ! -r $band ]]; then
58
+ if (( y )); then
59
+ sips -c $h $iw --cropOffset $y 0 $img --out $band >/dev/null 2>&1 || return 1
60
+ else
61
+ sips -p $(( ih + 2 )) $(( iw + 2 )) $img --out $bgcut/pad.png >/dev/null 2>&1 &&
62
+ sips -c $h $iw --cropOffset 1 1 $bgcut/pad.png --out $band >/dev/null 2>&1 || return 1
63
+ fi
64
+ fi
65
+ printf '\e_Ga=t,t=f,f=100,i=999997,q=2;%s\e\\' "$(print -rn -- $band | base64 | tr -d '\n')"
66
+ REPLY="999997 0"
67
+ }