From 95cddbc51030430814cfb899f7171f90c771dcc9 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 19 Feb 2023 23:52:14 +0100 Subject: [PATCH] Used slambda from git & fixed tmux chords --- flake.lock | 15 +++++++++------ flake.nix | 2 +- hosts/nixos/common/optional/slambda.nix | 6 ++++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 0323a71..16ded3d 100644 --- a/flake.lock +++ b/flake.lock @@ -258,14 +258,17 @@ ] }, "locked": { - "lastModified": 1676842959, - "narHash": "sha256-GulJ8tlS1g+LSxqhTxrao6Tf2nU/cqnLb7ilCbNyznE=", - "path": "/home/adrielus/Projects/python-keyboard-fuckery", - "type": "path" + "lastModified": 1676844861, + "narHash": "sha256-mG65gA3WJjtFPKj0ZJTQ663/DT5IlefLF4XMTlNK5H0=", + "owner": "Mateiadrielrafael", + "repo": "slambda", + "rev": "3c1315ee102e7ae45e560446aa7d41b7f5063c9d", + "type": "github" }, "original": { - "path": "/home/adrielus/Projects/python-keyboard-fuckery", - "type": "path" + "owner": "Mateiadrielrafael", + "repo": "slambda", + "type": "github" } }, "utils": { diff --git a/flake.nix b/flake.nix index 83e2790..8ec4a1f 100644 --- a/flake.nix +++ b/flake.nix @@ -33,7 +33,7 @@ impermanence.url = "github:nix-community/impermanence"; # Slambda - slambda.url = "path:/home/adrielus/Projects/python-keyboard-fuckery"; + slambda.url = "github:Mateiadrielrafael/slambda"; slambda.inputs.nixpkgs.follows = "nixpkgs"; # Neovim nightly diff --git a/hosts/nixos/common/optional/slambda.nix b/hosts/nixos/common/optional/slambda.nix index 1778213..2c55a72 100644 --- a/hosts/nixos/common/optional/slambda.nix +++ b/hosts/nixos/common/optional/slambda.nix @@ -12,7 +12,9 @@ let (chord [ "n" "l" ] [ "leftmeta" ]) (unmap [ "leftmeta" ]) (unmap [ "leftshift" ]) + (unmap [ "rightshift" ]) (unmap [ "leftctrl" ]) + (unmap [ "rightctrl" ]) # }}} # {{{ Other special keys (chord [ "g" "h" ] [ "backspace" ]) @@ -27,8 +29,8 @@ let (unmap [ "backslash" ]) # }}} # {{{ Tmux - (chord [ "a" "n" "k" "l" ] [ "rightshift" "a" "n" ]) # Next tab in tmux - (chord [ "a" "j" "l" ] [ "rightshift" "a" ]) # Tmux leader + (chord [ "a" "n" "k" "l" ] [ "leftctrl" "a" "n" ]) # Next tab in tmux + (chord [ "a" "j" "l" ] [ "leftctrl" "a" ]) # Tmux leader # }}} # {{{ WM keybinds (chord [ "n" "l" "q" ] [ "leftmeta" "1" ])