From 44d8bff2e455e4de3f4f6ca20ede3f4c81dbee42 Mon Sep 17 00:00:00 2001 From: hphuc25 Date: Wed, 4 Nov 2026 17:54:22 +0700 Subject: [PATCH] add: halley --- src/components/InteractiveInstaller.vue | 15 +++++++++++---- src/data/installer.ts | 11 +++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/components/InteractiveInstaller.vue b/src/components/InteractiveInstaller.vue index f01eb08..e43ab14 100644 --- a/src/components/InteractiveInstaller.vue +++ b/src/components/InteractiveInstaller.vue @@ -181,7 +181,11 @@ const envCmd = computed(() => { if (selectedEnv.value === 'Wayland') { if (selectedDe.value === 'KDE Plasma') { vars = ['export XMODIFIERS=@im=fcitx', 'export GLFW_IM_MODULE=ibus']; - } else if (selectedDe.value === 'GNOME' || selectedDe.value === 'Sway') { + } else if ( + selectedDe.value === 'GNOME' || + selectedDe.value === 'Sway' || + selectedDe.value === 'Halley' + ) { vars = [ 'export XMODIFIERS=@im=fcitx', 'export QT_IM_MODULE=fcitx', @@ -495,14 +499,17 @@ const chromiumWaylandFlags = computed(() => waylandDeSpecific.best_setup && waylandDeSpecific.best_setup.length > 0 "> -

- Hướng dẫn cài đặt tốt nhất: -

+
+ + +
+

diff --git a/src/data/installer.ts b/src/data/installer.ts index 193433b..2c3c1cc 100644 --- a/src/data/installer.ts +++ b/src/data/installer.ts @@ -29,6 +29,7 @@ export const deWms = [ 'Sway', 'Hyprland', 'Niri', + 'Halley', ]; export const environments = ['X11', 'Wayland']; export const initSystems = ['systemd', 'OpenRC', 'runit']; @@ -246,6 +247,8 @@ export const logic = { Hyprland: 'Thêm `hl.exec_cmd("fcitx5 -d")` vào ~/.config/hypr/hyprland.lua', Niri: 'Thêm `spawn-sh-at-startup "fcitx5 -d"` vào ~/.config/niri/config.kdl', + Halley: + 'Thêm `once "fcitx5 -d"` vào khối `autostart:` trong ~/.config/halley/halley.rune', }, wayland_extras: { General: { @@ -271,6 +274,14 @@ export const logic = { caveats: 'niri không hỗ trợ Xorg trực tiếp. Hãy cài chung với xwayland-satellite', }, + Halley: { + best_setup: [ + 'Halley chặn IME mặc định. Chạy lệnh sau để tự tạo systemd drop-in cấp quyền cho Fcitx5:', + ], + code: "mkdir -p ~/.config/systemd/user/halley.service.d\ncat > ~/.config/systemd/user/halley.service.d/ime.conf <<'EOF'\n[Service]\nEnvironment=HALLEY_ALLOW_INPUT_METHOD=/usr/bin/fcitx5\nEnvironment=HALLEY_ALLOW_VIRTUAL_KEYBOARD=/usr/bin/fcitx5\nEOF\nsystemctl --user daemon-reload", + caveats: + 'Sau khi sửa cần phải logout và login mới hoạt động.', + }, }, }, };