actually get japanese working

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-11 16:32:00 -06:00
parent 598ee77f6e
commit 73fbe39287
3 changed files with 56 additions and 28 deletions

View file

@ -107,7 +107,6 @@ in
}; };
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
# Audio / IPC # Audio / IPC
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -153,12 +152,17 @@ in
wl-clip-persist wl-clip-persist
]; ];
# Keyboard like sway/i3
console.useXkbConfig = true; console.useXkbConfig = true;
services.xserver.xkb = { services.xserver.xkb = {
layout = "us"; layout = "us";
options = "caps:escape"; };
services.keyd = {
enable = true;
keyboards.default.settings = {
main = {
capslock = "escape";
};
};
}; };
# Home Manager modules (plasma-manager + our HM layer) # Home Manager modules (plasma-manager + our HM layer)
@ -247,6 +251,30 @@ in
}; };
}) })
# Japanese
({
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
ignoreUserConfig = true;
addons = with pkgs; [ fcitx5-mozc ];
settings = {
inputMethod = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
DefaultIM = "keyboard-us";
};
"Groups/0/Items/0".Name = "keyboard-us";
"Groups/0/Items/1".Name = "mozc";
};
};
};
};
})
{ {
assertions = [ assertions = [
{ {

View file

@ -58,9 +58,7 @@ in
keyboard = { keyboard = {
layouts = [ layouts = [
{ layout = "us"; } { layout = "us"; }
{ layout = "jp"; }
]; ];
options = [ "caps:escape" ];
}; };
mice = [ mice = [
# { # {
@ -304,7 +302,9 @@ in
configFile = { configFile = {
kwalletrc.Wallet.Enabled = false; kwalletrc.Wallet.Enabled = false;
plasmanotifyrc.Notifications.PopupPosition = "TopRight"; plasmanotifyrc.Notifications.PopupPosition = "TopRight";
ksmserverrc.General.loginMode = "restorePreviousLogout";
kwinrc.Wayland.InputMethod =
"/run/current-system/sw/share/applications/org.fcitx.Fcitx5.desktop";
}; };
}; };
}; };

View file

@ -53,7 +53,7 @@ in
"Lock Session" = "Meta+Shift+L"; "Lock Session" = "Meta+Shift+L";
}; };
"KDE Keyboard Layout Switcher"."Switch to Next Keyboard Layout" = "Meta+K"; # "KDE Keyboard Layout Switcher"."Switch to Next Keyboard Layout" = "Meta+K";
}; };
# Custom hotkey commands # Custom hotkey commands