From c26a8a2c9b06e40a099e751f4a7b69c2917e25d9 Mon Sep 17 00:00:00 2001
From: prescientmoon <git@moonythm.dev>
Date: Thu, 29 Feb 2024 11:50:04 +0100
Subject: [PATCH] Improve keyboard setup

- add more unicode vim abbreviations
- add more things to the red layer in kanata
---
 .../neovim/config/lua/my/abbreviations/unicode.lua   |  5 ++++-
 hosts/nixos/common/optional/services/kanata.nix      | 12 ++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/home/features/neovim/config/lua/my/abbreviations/unicode.lua b/home/features/neovim/config/lua/my/abbreviations/unicode.lua
index 7d87d2a..2a955e9 100644
--- a/home/features/neovim/config/lua/my/abbreviations/unicode.lua
+++ b/home/features/neovim/config/lua/my/abbreviations/unicode.lua
@@ -137,10 +137,13 @@ M.unicode = {
   { "niinf", "-∞" },
   { "star", "⋆" },
   { "nabla", "∇" },
-  { "diamond", "⋄" },
+  { "minidiam", "⋄" },
   { "tto", "→" },
   { "ttoo", "⟶" },
   { "mapto", "↦" },
+  { "square", "□" },
+  { "rquare", "▢" }, -- rounded square
+  { "diam", "◇" },
   -- }}}
   -- {{{ Brackets
   { "langle", "⟨" },
diff --git a/hosts/nixos/common/optional/services/kanata.nix b/hosts/nixos/common/optional/services/kanata.nix
index f8f127d..88fefdd 100644
--- a/hosts/nixos/common/optional/services/kanata.nix
+++ b/hosts/nixos/common/optional/services/kanata.nix
@@ -132,18 +132,18 @@ let
     ;; {{{ Blue
     (deflayer blue
       _    _    _    _    _    _    _    _    _    _    _    _    _    _
-      _    S-1  S-2  S-3  S-4  S-5  S-6  S-7  S-8  grv S-grv _    _    _
+      _    S-=  S-2  S-3  S-4  S-5  S--  S-7  S-8  grv S-grv _    _    _
       _    S-,  S-[  [    S-9  S-/  S-\  -    /    =    S-;  _    _
-      _    S-.  S-]  ]    S-0  _    @em  S--  \    S-=  S-'  _
-      _    _    @purple        _              _
+      _    S-.  S-]  ]    S-0  S-1  @em  S-6  _    _    S-'  _
+      _    _    @purple        \              _
     )
     ;; }}}
     ;; {{{ Red
     (deflayer red
       _    _    _    _    _    _    _    _    _    _    _    _    _    _
-      _    1    2    3    4    _    _    _    _    _    _    _    _    _
-      _    5    6    7    8    _    left down up   rght _    _    _
-      _    9    0    _    _    _    _    _    _    _    _    _
+      _    1    2    3    4    5    home pgdn pgup end  del  _    _    _
+      _    6    7    8    9    0    left down up   rght _    _    _
+      _    _    _    _    _    _    _    _    _    _    _    _
       _    _    _              _           @purple
     )
     ;; }}}