diff options
author | polwex <polwex@sortug.com> | 2024-09-17 20:31:01 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2024-09-17 20:31:01 +0700 |
commit | 7772722d258f095e370d64de1647c415ce5f74f0 (patch) | |
tree | ce2248806df0d2c91c4d8fb87325026c46ec1844 | |
parent | 71f79433ac2959f86eeaa48320dd312771619248 (diff) |
m
-rw-r--r-- | flake.lock | 104 | ||||
-rw-r--r-- | hosts/local/fw11/keyboard.nix | 6 | ||||
-rw-r--r-- | hosts/local/fw11/thinkpad.kbd | 101 |
3 files changed, 157 insertions, 54 deletions
@@ -151,11 +151,11 @@ ] }, "locked": { - "lastModified": 1725377834, - "narHash": "sha256-tqoAO8oT6zEUDXte98cvA1saU9+1dLJQe3pMKLXv8ps=", + "lastModified": 1726396892, + "narHash": "sha256-KRGuT5nGRAOT3heigRWg41tbYpTpapGhsWc+XjnIx0w=", "owner": "nix-community", "repo": "disko", - "rev": "e55f9a8678adc02024a4877c2a403e3f6daf24fe", + "rev": "51e3a7e51279fedfb6669a00d21dc5936c78a6ce", "type": "github" }, "original": { @@ -264,11 +264,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1725234343, - "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", + "lastModified": 1726153070, + "narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", + "rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a", "type": "github" }, "original": { @@ -303,11 +303,11 @@ "nixpkgs-lib": "nixpkgs-lib_2" }, "locked": { - "lastModified": 1725234343, - "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", + "lastModified": 1726153070, + "narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", + "rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a", "type": "github" }, "original": { @@ -555,11 +555,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1725976743, - "narHash": "sha256-pLQQbiC9uO4lF58fAnlcDxlbsBB1XFWswsU1oZOIVqU=", + "lastModified": 1726394915, + "narHash": "sha256-guDSphIBbkUGI9LQDAls4PUDDJFl9URC0EAUKb+sjks=", "owner": "helix-editor", "repo": "helix", - "rev": "237cbe4bca46eed52efed39ed75eb44aaccbdde3", + "rev": "5ce77de0dc7106c6f1460d80a3c5a51eaea3108c", "type": "github" }, "original": { @@ -629,11 +629,11 @@ }, "locked": { "dir": "nix", - "lastModified": 1725345689, - "narHash": "sha256-HuRZn/HJ9BXus3QGAae6zSN6xczN5AZF4TKEcHj21G0=", + "lastModified": 1726080562, + "narHash": "sha256-Inh/OXdaw5tG/GrVjjhVELtSTZFPGLG3UcN/J5oFWy8=", "owner": "kmonad", "repo": "kmonad", - "rev": "906b4e9620f3b1da7884787d43213c945affb786", + "rev": "4e17fc4432dad3664d39274e4e698c7a5497216d", "type": "github" }, "original": { @@ -692,11 +692,11 @@ "spectrum": "spectrum" }, "locked": { - "lastModified": 1725664757, - "narHash": "sha256-kUMgeF3hHJM8aBpdazNgtCeeOTrWext6lHfrYmC6otU=", + "lastModified": 1726161490, + "narHash": "sha256-tzGcRRhhK5lAuBtlHl3D/TR2V3egPLV4BBcN2+4CyY0=", "owner": "astro", "repo": "microvm.nix", - "rev": "caac7808d1e31f8a0fa408338cd3736947cb226d", + "rev": "af604aa08ac9a4ae585beaf1a3482897a27ab67e", "type": "github" }, "original": { @@ -712,11 +712,11 @@ ] }, "locked": { - "lastModified": 1726032244, - "narHash": "sha256-3VvRGPkpBJobQrFD3slQzMAwZlo4/UwxT8933U5tRVM=", + "lastModified": 1726188813, + "narHash": "sha256-Vop/VRi6uCiScg/Ic+YlwsdIrLabWUJc57dNczp0eBc=", "owner": "lnl7", "repo": "nix-darwin", - "rev": "f4f18f3d7229845e1c9d517457b7a0b90a38b728", + "rev": "21fe31f26473c180390cfa81e3ea81aca0204c80", "type": "github" }, "original": { @@ -753,11 +753,11 @@ "umu": "umu" }, "locked": { - "lastModified": 1725977377, - "narHash": "sha256-4ll5NCT25Ex9dqTrNaiTbmL9IrVgTVFOn7/oxaxqoL0=", + "lastModified": 1726364380, + "narHash": "sha256-hICWlRKF1lOzRwTepJORe9hWYGkUVXJxKjTe5P5CSg0=", "owner": "fufexan", "repo": "nix-gaming", - "rev": "5e1b352744abed2d9a8619f8ed916dd06a88f548", + "rev": "3e51c9884bca93625ff1deca440e30c8d2f2e522", "type": "github" }, "original": { @@ -847,11 +847,11 @@ ] }, "locked": { - "lastModified": 1725843519, - "narHash": "sha256-Z6DglUwgFDz6fIvQ89wx/uBVWrGvEGECq0Ypyk/eigE=", + "lastModified": 1726102718, + "narHash": "sha256-u89QyfjtXryLHrO3Wre4kuWK5KDKiXe8lgRi6+cUOEw=", "owner": "nix-community", "repo": "nixos-generators", - "rev": "214efbd73241d72a8f48b8b9a73bb54895cd51a7", + "rev": "5ae384b83b91080f0fead6bc1add1cff8277cb3f", "type": "github" }, "original": { @@ -996,11 +996,11 @@ }, "nixpkgs-darwin": { "locked": { - "lastModified": 1725969105, - "narHash": "sha256-laH1I1G89tx/lPoH8vSfwkoTlcMN8h4djjzjIxHwwkk=", + "lastModified": 1726328674, + "narHash": "sha256-qmd7YxokSkpZSwuXoD8a734JkIQmm2kaDrBzocKpVrA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "196c3de2577f95e247cc7cef135cce42e0e5b92c", + "rev": "b51904c22eef2070055aa4dc9e8004c19faac776", "type": "github" }, "original": { @@ -1083,11 +1083,11 @@ }, "nixpkgs-stable_3": { "locked": { - "lastModified": 1725826545, - "narHash": "sha256-L64N1rpLlXdc94H+F6scnrbuEu+utC03cDDVvvJGOME=", + "lastModified": 1726320982, + "narHash": "sha256-RuVXUwcYwaUeks6h3OLrEmg14z9aFXdWppTWPMTwdQw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f4c846aee8e1e29062aa8514d5e0ab270f4ec2f9", + "rev": "8f7492cce28977fbf8bd12c72af08b1f6c7c3e49", "type": "github" }, "original": { @@ -1107,11 +1107,11 @@ ] }, "locked": { - "lastModified": 1725993386, - "narHash": "sha256-SzXGWv4/b3LVUX+HLuEp9htIoSmp9W643RL8Hpt6z+w=", + "lastModified": 1726392443, + "narHash": "sha256-w0r9FyV909RtE9DpHqd8oISO77mmAPak5yzNR1uMWiM=", "owner": "nix-community", "repo": "nixpkgs-wayland", - "rev": "8bea6b6f8d0e53d17496028474dca1be3fca25a0", + "rev": "d73b97762fcc98b89dd2cb87df6c17962b2c1e0f", "type": "github" }, "original": { @@ -1122,11 +1122,11 @@ }, "nixpkgs_10": { "locked": { - "lastModified": 1725634671, - "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=", + "lastModified": 1726062873, + "narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=", "owner": "nixos", "repo": "nixpkgs", - "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c", + "rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f", "type": "github" }, "original": { @@ -1250,11 +1250,11 @@ }, "nixpkgs_7": { "locked": { - "lastModified": 1725534445, - "narHash": "sha256-Yd0FK9SkWy+ZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84=", + "lastModified": 1726238386, + "narHash": "sha256-3//V84fYaGVncFImitM6lSAliRdrGayZLdxWlpcuGk0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9bb1e7571aadf31ddb4af77fc64b2d59580f9a39", + "rev": "01f064c99c792715054dc7a70e4c1626dbbec0c3", "type": "github" }, "original": { @@ -1298,11 +1298,11 @@ }, "nur": { "locked": { - "lastModified": 1726040643, - "narHash": "sha256-WqGAjF6kDH4rptcoUbjxZynTnbfRWd7NrD0Jkvdpss8=", + "lastModified": 1726393490, + "narHash": "sha256-LVGtTtPzF0rxy3nKzegvaLVsTKSM0IMLjfbxnh7FKP0=", "owner": "nix-community", "repo": "NUR", - "rev": "0b95c49ce33290d48d685c10895a0516dfd9d43b", + "rev": "1a4d47c6fc08986702c185ef0409d59dd42269a1", "type": "github" }, "original": { @@ -1636,11 +1636,11 @@ }, "locked": { "dir": "packaging/nix", - "lastModified": 1725408497, - "narHash": "sha256-wyJPWwHzHpFwc9XP9nM/Lpbvahusp2NcUtWXlErGi1g=", + "lastModified": 1726301236, + "narHash": "sha256-0JQH9RYdGL1NUaQE5syA/SmbxuZ6NTLn3FduapSXUXA=", "ref": "refs/heads/main", - "rev": "2d3c948a51bc1d2880a90bf985947f9afc89e8d1", - "revCount": 713, + "rev": "e06443981e3bf09cbc70aaffe245e4a03f1a6df7", + "revCount": 715, "submodules": true, "type": "git", "url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix" @@ -1660,11 +1660,11 @@ ] }, "locked": { - "lastModified": 1725946636, - "narHash": "sha256-UbVApb+B5QyOl+zrc2oKQ6+M5aKRiw3EotrjxzUfp9A=", + "lastModified": 1726383898, + "narHash": "sha256-Z2ZS4rD3FjNIblPlXpx9XhkvepZWhO4xnJNk7o5ebe0=", "owner": "alexays", "repo": "waybar", - "rev": "6560e32bc1fd3c777d7094b2033a4358a98ca0ee", + "rev": "0d02f6877d88551ea2be0cd151c1e6354e208b1c", "type": "github" }, "original": { diff --git a/hosts/local/fw11/keyboard.nix b/hosts/local/fw11/keyboard.nix index 88f8545..68302f8 100644 --- a/hosts/local/fw11/keyboard.nix +++ b/hosts/local/fw11/keyboard.nix @@ -34,8 +34,10 @@ enable = true; keyboards.internal = { - device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd"; - config = builtins.readFile ./framework.kbd; + # device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd"; + # config = builtins.readFile ./framework.kbd; + device = "/dev/input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_Trackpoint-event-kbd"; + config = builtins.readFile ./thinkpad.kbd; # defcfg = { # enable = true; diff --git a/hosts/local/fw11/thinkpad.kbd b/hosts/local/fw11/thinkpad.kbd new file mode 100644 index 0000000..ea4751e --- /dev/null +++ b/hosts/local/fw11/thinkpad.kbd @@ -0,0 +1,101 @@ +;; one liner comments ';;' +#| Multiline + comments |# + +(defcfg ;; For linux & by-id lists pluggable devices +;; If a key is not bound/left_empty(_) then it will fall back to the previous +;; layer's binding if not then default. +fallthrough true +;; To run system commands. You MIGHT face issues with tiling window managers due to command helpers. +;; allow-cmd true +;; use 'ls /dev/input/by-id/' for detachable keyboards and +;; 'ls /dev/input/by-path/' for builtin keyboards location' +input (device-file "/dev/input/event16") +;; Not sure what this does. Please check the docs. +output (uinput-sink "My KMonad output") +) + +;; This is the real representation of your actual keyboard. We haven't started +;; customizing layouts yet. +(defsrc + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + ` 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] \ + caps a s d f g h j k l ; ' ret + lsft z x c v b n m , . / rsft up + lctl lmet lalt spc ralt rctl left down right +) +;; Aliases + +(defalias +;; Layer toggles +sym (layer-toggle syms) +sym2 (layer-toggle syms2) +cords (sticky-key 1000 (layer-toggle mods)) +;; +hrt (layer-switch homerowmods) +back (layer-switch qwerty) + +;; Homerow keys +a (tap-hold-next-release 280 a lctl) +s (tap-hold-next-release 280 s lalt) +d (tap-hold-next-release 280 d lmet) +f (tap-hold-next-release 280 f lsft) +;; +j (tap-hold-next-release 280 j rsft) +k (tap-hold-next-release 280 k lmet) +l (tap-hold-next-release 280 l lalt) +semi (tap-hold-next-release 280 ; rctl) + +;; button to launch brave browser +;; veeb (cmd-button "brave") +;; ssf (sticky-key 500 (layer-toggle rshift)) +;; rsf (layer-toggle rshift) +) + +;; The first custom layer is the one that gets activated when kmonad is started +(deflayer qwerty ;; The default layer that'd be read when you launch kmonad + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + ` 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] \ + esc a s d f g h j k l ; ' ret + @sym z x c v b n m , . / rsft up + lctl lmet @sym spc @cords @hrt left down right +) +(deflayer homerowmods + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + ` 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] \ + esc @a @s @d @f g h @j @k @l @semi ' ret + @sym z x c v b n m , . / rsft up + lctl lmet @sym spc lalt @back left down right +) +(deflayer mods + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + ` 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] h + esc lctl lalt lmet lsft g h rsft rmet ralt rctl ' ret + @sym z x c v b n m , . / rsft up + lctl lmet @sym spc lalt @back left down right +) + +;; A layer dedicated to symbols +(deflayer syms + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ up _ _ ! @ # $ % _ _ _ + _ _ left down right @sym2 ' ^ & - = _ ret + _ _ _ _ _ _ \( [ { < \ _ _ + _ _ _ _ _ _ _ _ _ +) + + +;; More symbols +(deflayer syms2 + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ ` ~ * \_ + _ ret + _ _ _ _ _ _ \) ] } > | _ _ + _ _ _ _ _ _ _ _ _ +) |