Add japanese input method
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
@@ -23,4 +23,18 @@
|
||||
console.keyMap = "de";
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
## Japanese input, env vars and servic start are configured in hyprland config
|
||||
## Configure via program fcitx5-configuration
|
||||
## There, add the mozc input for japanese
|
||||
## This could also be done declaratively in this config, see: https://wiki.nixos.org/wiki/Fcitx5
|
||||
i18n.inputMethod = {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-gtk # Ensures IME works in GTK applications
|
||||
];
|
||||
fcitx5.waylandFrontend = true; # compability with wayland
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ hl.on("hyprland.start", function()
|
||||
-- hl.exec_cmd("waybar")
|
||||
hl.exec_cmd("env QT_QPA_PLATFORMTHEME=qt5ct noctalia-shell") -- env ensures noctalia works alongside kde
|
||||
hl.exec_cmd("firefox")
|
||||
hl.exec_cmd("fcitx5 -d -r")
|
||||
end)
|
||||
hl.on("config.reloaded", function()
|
||||
hl.exec_cmd("correct-workspace-locations")
|
||||
@@ -18,6 +19,10 @@ end)
|
||||
|
||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
||||
hl.env("TERMINAL", terminal) -- e.g. for emacs
|
||||
-- Use fcitx for optional japanese input
|
||||
hl.env("XMODIFIERS", "@im=fcitx")
|
||||
hl.env("QT_IM_MODULE", "fcitx")
|
||||
hl.env("SDL_IM_MODULE", "fcitx")
|
||||
|
||||
-----------------------
|
||||
----- PERMISSIONS -----
|
||||
|
||||
Reference in New Issue
Block a user