Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 30 additions & 27 deletions home-manager/modules/xremap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,33 +90,36 @@ let
};
in
{
config = lib.mkIf (isDesktop && isLinux) {
services.xremap = {
enable = true;
withWlroots = true;
watch = true;
# Only intercept keyd output — SUPER (CapsLock/RightAlt) goes straight to Hyprland
deviceNames = [ "keyd virtual keyboard" ];
config = {
keymap = [
{
name = "Framework Command (Ghostty)";
application.only = [ "com.mitchellh.ghostty" ];
remap = ghosttyRemap;
}
{
name = "Framework Command (Global)";
application.not = [ "com.mitchellh.ghostty" ];
remap = globalRemap;
}
];
config = lib.mkMerge [
{ services.xremap.enable = lib.mkDefault false; }
(lib.mkIf (isDesktop && isLinux) {
services.xremap = {
enable = true;
withWlroots = true;
watch = true;
# Only intercept keyd output — SUPER (CapsLock/RightAlt) goes straight to Hyprland
deviceNames = [ "keyd virtual keyboard" ];
config = {
keymap = [
{
name = "Framework Command (Ghostty)";
application.only = [ "com.mitchellh.ghostty" ];
remap = ghosttyRemap;
}
{
name = "Framework Command (Global)";
application.not = [ "com.mitchellh.ghostty" ];
remap = globalRemap;
}
];
};
};
};

# Upstream module already sets After/PartOf/Restart; only add extras.
systemd.user.services.xremap = {
Unit.StartLimitIntervalSec = 0;
Service.RestartSec = 3;
};
};
# Upstream module already sets After/PartOf/Restart; only add extras.
systemd.user.services.xremap = {
Unit.StartLimitIntervalSec = 0;
Service.RestartSec = 3;
};
})
];
}
Loading