galaaz 2.1.10.pre.12 → 2.1.10.pre.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6665ae78ae4ac12fe5d30973d5917c1a9e8df18a686d0c826069748e75e40e64
4
- data.tar.gz: 4be07e49ccc107e8309f09040224b655abcf19c78a6086e7ab2b403823e2af79
3
+ metadata.gz: d3edc95ba0c5748d89f2e38c550e7f80823ae2d4c03d2ae9cb8c35c9979c7409
4
+ data.tar.gz: 0ea188f8ac1c56e7269da71c9a7e906cb00fc5cd62c2e7c6b41b399fed353342
5
5
  SHA512:
6
- metadata.gz: 0346baa6c821cbc710611ff6952231ad851055b8bc5012a6831d7e254f6dd5814f922b4dae2f7d3f5a6983d398b150925809ff571e0026f0f6f288b899576701
7
- data.tar.gz: 6c2c7cbe579833af89499db3471034c6fc98977082da5f13119984916dedc278d50174c3e2cc563af026f595fc1d7b7e201441facfaeaafc8586a43c741cfd42
6
+ metadata.gz: bcb653a18c4a441933b3245ad516fe0eaa4b085737af5a78dad84b4c77754863e9d83411e95e515ba1228faa6c65cb1c10746cec098b07b66d9cdc02dad91d66
7
+ data.tar.gz: a46ac9ae0d47e69e4f7fcfb31acd02cb2e878849e8d3b8d51055ee7c290a2a64065c8184b376671c51ea9d3414cd248e4917657e4e13a08f350d12a45601364b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.1.10.pre.14
6
+
7
+ ### Fixed
8
+
9
+ - Omarchy font install ends with **`omarchy restart shell`** (fallbacks:
10
+ `omarchy-restart-shell`, then `killall omarchy-shell` + relaunch) so the
11
+ Galaaz R glyph appears without logout. Menu JSON already hot-reloads; Qt
12
+ does not reload family `omarchy` until the shell restarts.
13
+
14
+ ## 2.1.10.pre.13
15
+
16
+ ### Fixed
17
+
18
+ - Omarchy Install rows back to **`disabled:`** (dim + ✓), matching Rails / the
19
+ last known-good Galaaz overlay — not `when:` hide. Nested Knit/Arrow/Ledger
20
+ are still under **Install → Development → Galaaz**; typing a letter in the
21
+ menu search lists them as flat hits with a Galaaz breadcrumb (Omarchy search
22
+ UX, not a broken tree).
23
+ - Font install: restore the pre.6 fontconfig snippet; always `cp -f`
24
+ `omarchy-with-galaaz.ttf`. After upgrade run `galaaz omarchy install` and
25
+ restart the Omarchy shell so Qt reloads family `omarchy` / U+E90E.
26
+
5
27
  ## 2.1.10.pre.12
6
28
 
7
29
  ### Fixed
data/lib/galaaz/cli.rb CHANGED
@@ -373,8 +373,32 @@ module Galaaz
373
373
  system('fc-cache', '-f', fonts)
374
374
  system('fc-cache', '-f', user_fonts)
375
375
  end
376
- warn 'galaaz omarchy: logout/reboot required for Qt to reload brand fonts (killall omarchy-shell is often not enough)' \
377
- if ENV['OMARCHY_PATH'] || File.directory?(File.expand_path('~/.config/omarchy'))
376
+ restart_omarchy_shell_for_fonts!
377
+ end
378
+
379
+ # Menu JSON hot-reloads; Qt keeps family "omarchy" until omarchy-shell restarts.
380
+ def restart_omarchy_shell_for_fonts!
381
+ return unless ENV['OMARCHY_PATH'] || File.directory?(File.expand_path('~/.config/omarchy'))
382
+
383
+ if command_present?('omarchy') && system('omarchy', 'restart', 'shell')
384
+ puts 'galaaz omarchy: restarted Omarchy shell (brand font reload)'
385
+ return
386
+ end
387
+ if command_present?('omarchy-restart-shell') && system('omarchy-restart-shell')
388
+ puts 'galaaz omarchy: restarted Omarchy shell via omarchy-restart-shell'
389
+ return
390
+ end
391
+ if system('pgrep', '-x', 'omarchy-shell', out: File::NULL, err: File::NULL)
392
+ system('killall', 'omarchy-shell', out: File::NULL, err: File::NULL)
393
+ if command_present?('omarchy-launch-shell')
394
+ system('omarchy-launch-shell', out: File::NULL, err: File::NULL)
395
+ elsif command_present?('hyprctl')
396
+ system('hyprctl', 'dispatch', 'exec', 'omarchy-launch-shell', out: File::NULL, err: File::NULL)
397
+ end
398
+ puts 'galaaz omarchy: restarted omarchy-shell (fallback)'
399
+ return
400
+ end
401
+ warn 'galaaz omarchy: run `omarchy restart shell` so Qt reloads the brand font'
378
402
  end
379
403
 
380
404
  # ---- blogs ----
@@ -276,13 +276,13 @@ if [[ -f "${SCRIPT_DIR}/fonts/galaaz.ttf" ]]; then
276
276
  fi
277
277
  if [[ -f "${SCRIPT_DIR}/fonts/omarchy-with-galaaz.ttf" ]]; then
278
278
  mkdir -p "${HOME}/.local/share/fonts" "${HOME}/.config/fontconfig/conf.d"
279
- cp "${SCRIPT_DIR}/fonts/omarchy-with-galaaz.ttf" "${HOME}/.local/share/fonts/omarchy-with-galaaz.ttf"
280
- cat >"${HOME}/.config/fontconfig/conf.d/99-galaaz-omarchy-brand.conf" <<XML
279
+ cp -f "${SCRIPT_DIR}/fonts/omarchy-with-galaaz.ttf" "${HOME}/.local/share/fonts/omarchy-with-galaaz.ttf"
280
+ # Same conf as the known-good pre.6 dogfood — prefer our TTF over stock omarchy.ttf.
281
+ cat >"${HOME}/.config/fontconfig/conf.d/99-galaaz-omarchy-brand.conf" <<'XML'
281
282
  <?xml version="1.0"?>
282
283
  <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
283
284
  <fontconfig>
284
285
  <!-- Prefer Galaaz-extended Omarchy brand font (adds U+E90E). -->
285
- <dir>${HOME}/.local/share/fonts</dir>
286
286
  <selectfont>
287
287
  <rejectfont>
288
288
  <glob>*/omarchy/omarchy.ttf</glob>
@@ -291,19 +291,27 @@ if [[ -f "${SCRIPT_DIR}/fonts/omarchy-with-galaaz.ttf" ]]; then
291
291
  </fontconfig>
292
292
  XML
293
293
  log "menu font (family omarchy + U+E90E): ${HOME}/.local/share/fonts/omarchy-with-galaaz.ttf"
294
- if command -v fc-list >/dev/null 2>&1; then
295
- fc-cache -f "${HOME}/.local/share/fonts" >/dev/null 2>&1 || true
296
- if fc-list : file family 2>/dev/null | grep -q 'omarchy-with-galaaz.ttf'; then
297
- log "fontconfig sees omarchy-with-galaaz.ttf"
298
- else
299
- log "WARN: omarchy-with-galaaz.ttf not listed by fc-list yet (logout/restart shell if icon missing)"
300
- fi
301
- fi
302
294
  fi
303
295
  if command -v fc-cache >/dev/null 2>&1; then
304
296
  fc-cache -r >/dev/null 2>&1 || true
305
297
  fc-cache -f "${HOME}/.local/share/fonts" >/dev/null 2>&1 || true
306
298
  fi
299
+ # Menu JSON hot-reloads; Qt keeps family "omarchy" until omarchy-shell restarts.
300
+ if command -v omarchy >/dev/null 2>&1 && omarchy restart shell; then
301
+ log "restarted Omarchy shell (brand font reload)"
302
+ elif command -v omarchy-restart-shell >/dev/null 2>&1 && omarchy-restart-shell; then
303
+ log "restarted Omarchy shell via omarchy-restart-shell"
304
+ elif pgrep -x omarchy-shell >/dev/null 2>&1; then
305
+ killall omarchy-shell 2>/dev/null || true
306
+ if command -v omarchy-launch-shell >/dev/null 2>&1; then
307
+ omarchy-launch-shell >/dev/null 2>&1 || true
308
+ elif command -v hyprctl >/dev/null 2>&1; then
309
+ hyprctl dispatch exec omarchy-launch-shell >/dev/null 2>&1 || true
310
+ fi
311
+ log "restarted omarchy-shell (fallback)"
312
+ else
313
+ log "Omarchy shell not restarted; run: omarchy restart shell"
314
+ fi
307
315
  cp "${BASH_SOURCE[0]}" "${HOME}/.local/bin/omarchy-install-galaaz"
308
316
  chmod +x "${HOME}/.local/bin/omarchy-install-galaaz"
309
317
  if [[ -f "${SCRIPT_DIR}/remove-galaaz.sh" ]]; then
@@ -6,15 +6,12 @@
6
6
  // "galaaz add …" as one word — omarchy-launch-tui then does nothing useful.
7
7
  //
8
8
  // Brand mark: U+E90E in family "omarchy" (same iconFont Cursor/Grok use).
9
- // Omarchy's stock font owns E900–E90D; we ship omarchy-with-galaaz.ttf which
10
- // is that font plus our R+gem at E90E, installed to
11
- // ~/.local/share/fonts/omarchy-with-galaaz.ttf. A separate family "galaaz"
12
- // alone shows missing-glyph tofu in Qt — do not use iconFont "galaaz" here.
9
+ // Font file: ~/.local/share/fonts/omarchy-with-galaaz.ttf (installed by core).
13
10
  //
14
- // Install: when: hides a row after that profile is installed (full catalog
15
- // stays visible until each item is done). Use $HOME + [[ ]] like stock Omarchy
16
- // — bare ~ in test -f is unreliable in the menu guard batcher.
17
- // Guide / Docs / GitHub: Learn → Galaaz. Remove: only while core present.
11
+ // Install rows: disabled: (dim + ✓ when installed) — same as Omarchy Rails.
12
+ // Do not use when: to hide Install rows; Omarchy search will still list nested
13
+ // children under a divider when you type a letter (that is search, not a
14
+ // broken tree). Guide/Docs/GitHub: Learn → Galaaz.
18
15
 
19
16
  "learn.galaaz": {
20
17
  "icon": "\uE90E",
@@ -53,7 +50,7 @@
53
50
  "label": "Galaaz (core)",
54
51
  "description": "setup + blogs (gem already installed)",
55
52
  "action": "omarchy-launch-tui omarchy-install-galaaz",
56
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/core ]]"
53
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/core ]]"
57
54
  },
58
55
  "install.development.galaaz.knit": {
59
56
  "icon": "\uE90E",
@@ -61,7 +58,7 @@
61
58
  "label": "Knit (HTML + PDF blogs)",
62
59
  "description": "pandoc + knitr/rmarkdown + TinyTeX",
63
60
  "action": "omarchy-launch-tui omarchy-galaaz-add knit",
64
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/knit ]]"
61
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/knit ]]"
65
62
  },
66
63
  "install.development.galaaz.arrow-r": {
67
64
  "icon": "\uE90E",
@@ -69,7 +66,7 @@
69
66
  "label": "Arrow (R only)",
70
67
  "description": "CRAN arrow via Apache prebuilt libarrow",
71
68
  "action": "omarchy-launch-tui omarchy-galaaz-add arrow-r",
72
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/arrow-r && ! -f $HOME/.config/galaaz/profiles/arrow ]]"
69
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/arrow-r || -f $HOME/.config/galaaz/profiles/arrow ]]"
73
70
  },
74
71
  "install.development.galaaz.arrow-ruby": {
75
72
  "icon": "\uE90E",
@@ -77,7 +74,7 @@
77
74
  "label": "Arrow (Ruby)",
78
75
  "description": "R arrow + arrow-glib / red-arrow (installs R only first)",
79
76
  "action": "omarchy-launch-tui omarchy-galaaz-add arrow-ruby",
80
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/arrow-ruby && ! -f $HOME/.config/galaaz/profiles/arrow ]]"
77
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/arrow-ruby || -f $HOME/.config/galaaz/profiles/arrow ]]"
81
78
  },
82
79
  "install.development.galaaz.arrow-debug": {
83
80
  "icon": "\uE90E",
@@ -91,14 +88,14 @@
91
88
  "iconFont": "omarchy",
92
89
  "label": "Bioconductor (DESeq2)",
93
90
  "action": "omarchy-launch-tui omarchy-galaaz-add bio",
94
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/bio ]]"
91
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/bio ]]"
95
92
  },
96
93
  "install.development.galaaz.examples": {
97
94
  "icon": "\uE90E",
98
95
  "iconFont": "omarchy",
99
96
  "label": "Examples",
100
97
  "action": "omarchy-launch-tui omarchy-galaaz-add examples",
101
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/examples ]]"
98
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/examples ]]"
102
99
  },
103
100
  "install.development.galaaz.ledger": {
104
101
  "icon": "\uE90E",
@@ -106,7 +103,7 @@
106
103
  "label": "Ledger (R-on-Rails demo)",
107
104
  "description": "Clone app, seed, bin/dev",
108
105
  "action": "omarchy-launch-tui omarchy-galaaz-add ledger",
109
- "when": "[[ ! -f $HOME/.config/galaaz/profiles/ledger ]]"
106
+ "disabled": "[[ -f $HOME/.config/galaaz/profiles/ledger ]]"
110
107
  },
111
108
  "remove.development.galaaz": {
112
109
  "icon": "\uE90E",
data/version.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  $gem_name = "galaaz"
2
- $version="2.1.10.pre.12"
2
+ $version="2.1.10.pre.14"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galaaz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.10.pre.12
4
+ version: 2.1.10.pre.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Botafogo