galaaz 2.1.10.pre.13 → 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: '09e94b03c143100bedec0b46d8737b13aa8c25235b0868fddbbaf49d111791c0'
4
- data.tar.gz: 94ee86839f3d3fd4005aa097d5538a0dc3f0aff2db598a507baa8a08e32d1413
3
+ metadata.gz: d3edc95ba0c5748d89f2e38c550e7f80823ae2d4c03d2ae9cb8c35c9979c7409
4
+ data.tar.gz: 0ea188f8ac1c56e7269da71c9a7e906cb00fc5cd62c2e7c6b41b399fed353342
5
5
  SHA512:
6
- metadata.gz: fd0782c57de1e2ebf14bb11f91c42f90c7aa3223880240462249e99d6075942669c52fe6f05d3d692ae9a94a96e0d00c7d8cb94f03f86dce0f181a4703c9b673
7
- data.tar.gz: 5f40a5a4dd2349244be53543aa08b587f3c906a75023e30a57f74f1359dfa23e6334c51cfc704fcc5153bda6b67e868b2614816149e7ec5b8e637e7f7bdae724
6
+ metadata.gz: bcb653a18c4a441933b3245ad516fe0eaa4b085737af5a78dad84b4c77754863e9d83411e95e515ba1228faa6c65cb1c10746cec098b07b66d9cdc02dad91d66
7
+ data.tar.gz: a46ac9ae0d47e69e4f7fcfb31acd02cb2e878849e8d3b8d51055ee7c290a2a64065c8184b376671c51ea9d3414cd248e4917657e4e13a08f350d12a45601364b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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
+
5
14
  ## 2.1.10.pre.13
6
15
 
7
16
  ### 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 ----
@@ -296,6 +296,22 @@ if command -v fc-cache >/dev/null 2>&1; then
296
296
  fc-cache -r >/dev/null 2>&1 || true
297
297
  fc-cache -f "${HOME}/.local/share/fonts" >/dev/null 2>&1 || true
298
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
299
315
  cp "${BASH_SOURCE[0]}" "${HOME}/.local/bin/omarchy-install-galaaz"
300
316
  chmod +x "${HOME}/.local/bin/omarchy-install-galaaz"
301
317
  if [[ -f "${SCRIPT_DIR}/remove-galaaz.sh" ]]; then
data/version.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  $gem_name = "galaaz"
2
- $version="2.1.10.pre.13"
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.13
4
+ version: 2.1.10.pre.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Botafogo