Compare commits
No commits in common. "e32e56c1ab60dee8b7ecabd43eef4741d8706ca7" and "d9fbf9a69f31a0cf2b87864c34f64160b7dec09c" have entirely different histories.
e32e56c1ab
...
d9fbf9a69f
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{...}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
@ -10,25 +10,6 @@
|
|||
|
||||
networking.hostName = "bicep";
|
||||
|
||||
services.interception-tools = {
|
||||
enable = true;
|
||||
plugins = with pkgs.interception-tools-plugins; [
|
||||
dual-function-keys
|
||||
];
|
||||
udevmonConfig = ''
|
||||
- JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/interception/dual-function-keys/my-mappings.yaml | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE"
|
||||
DEVICE:
|
||||
NAME: "AT Translated Set 2 keyboard"
|
||||
'';
|
||||
};
|
||||
environment.etc."interception/dual-function-keys/my-mappings.yaml".text = ''
|
||||
MAPPINGS:
|
||||
- KEY: KEY_CAPSLOCK
|
||||
TAP: KEY_ESC
|
||||
HOLD: KEY_LEFTMETA
|
||||
HOLD_START: BEFORE_RELEASE
|
||||
'';
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leave
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
|
|
@ -89,6 +89,7 @@ exec swayidle -w \
|
|||
repeat_delay 200
|
||||
repeat_rate 35
|
||||
xkb_layout us
|
||||
xkb_options caps:escape
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue