remove xremap from NixOS config
keyd handles all key remapping now, so xremap is no longer needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,6 @@ makeEnable config "myModules.desktop" true {
|
||||
./fonts.nix
|
||||
./hyprland.nix
|
||||
./keyd.nix
|
||||
./xremap.nix
|
||||
];
|
||||
|
||||
assertions = [
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
{ config, lib, pkgs, makeEnable, ... }:
|
||||
makeEnable config "myModules.xremap" true {
|
||||
hardware.uinput.enable = true;
|
||||
boot.kernelModules = [ "uinput" ];
|
||||
|
||||
services.udev.extraRules = lib.mkAfter ''
|
||||
KERNEL=="uinput", GROUP="input", TAG+="uaccess"
|
||||
'';
|
||||
|
||||
environment.etc."xremap/config.yml".text = ''
|
||||
keymap:
|
||||
- name: Chrome emacs-ish
|
||||
application:
|
||||
only: [Google-chrome, Google-chrome-stable, google-chrome, Chromium, chromium]
|
||||
remap:
|
||||
C-a: Home
|
||||
C-e: End
|
||||
Alt-b: C-Left
|
||||
Alt-f: C-Right
|
||||
'';
|
||||
|
||||
environment.systemPackages = [ pkgs.xremap ];
|
||||
|
||||
systemd.user.services.xremap = {
|
||||
description = "xremap key remapper";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.xremap}/bin/xremap /etc/xremap/config.yml --watch";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user