feat(x1): xremap
This commit is contained in:
parent
d6c1d1d4d6
commit
a1ff322926
4 changed files with 705 additions and 10 deletions
|
|
@ -9,6 +9,7 @@ with lib.metacfg;
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./xremap.nix
|
||||
];
|
||||
|
||||
services.rustdesk-server.signal.enable = false;
|
||||
|
|
|
|||
23
systems/x86_64-linux/x1/xremap.nix
Normal file
23
systems/x86_64-linux/x1/xremap.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# In /etc/nixos/configuration.nix
|
||||
{ ... }:
|
||||
{
|
||||
# Enable the xremap service
|
||||
services.xremap.enable = true;
|
||||
services.xremap.userName = "harald"; # Replace with your username
|
||||
services.xremap.serviceMode = "user"; # Run as user service, not system-wide
|
||||
services.xremap.withGnome = true;
|
||||
|
||||
# Define your remapping configuration using Nix's attribute set format
|
||||
services.xremap.config = {
|
||||
global_remaps = [
|
||||
{
|
||||
remap = {
|
||||
# Map Alt+C (LeftAlt-C) to Ctrl+C (LeftControl-C)
|
||||
LeftAlt-C = "COPY";
|
||||
LeftAlt-V = "PASTE";
|
||||
LeftAlt-X = "CUT";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue