kde: sync XWayland keyboard layout with KDE

This commit is contained in:
Leonardo Eugênio 2026-07-01 15:38:52 -03:00
parent a25e277019
commit f77a07d781
4 changed files with 84 additions and 1 deletions

View file

@ -4,6 +4,9 @@
config,
...
}:
lib.mkIf (config.my.desktop == "kde") {
{
imports = [ ./kde/kde-sync-xkbmap.nix ];
}
// lib.mkIf (config.my.desktop == "kde") {
services.gpg-agent.pinentry.package = lib.mkForce pkgs.pinentry-qt;
}

View file

@ -0,0 +1,22 @@
{
config,
pkgs,
lib,
...
}:
lib.mkIf (config.my.desktop == "kde") {
systemd.user.services.kde-sync-xkbmap = {
Unit = {
Description = "Sync xkbmap with KDE keyboard layout";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = lib.getExe pkgs.kde-sync-xkbmap;
Restart = "on-failure";
};
Install = {
WantedBy = [ "plasma-workspace.target" ];
};
};
}