kde: sync XWayland keyboard layout with KDE
This commit is contained in:
parent
a25e277019
commit
f77a07d781
4 changed files with 84 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
22
user/kde/kde-sync-xkbmap.nix
Normal file
22
user/kde/kde-sync-xkbmap.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue