some more housecleaning and changing swap on cnixpad

This commit is contained in:
cnst
2024-09-06 21:21:00 +02:00
parent 865c8c4ba9
commit 5d5b6fe8c8
29 changed files with 285 additions and 198 deletions

View File

@@ -0,0 +1,27 @@
```
┌─────┐
│ 2 4 │ 2 = SHIFT, 4 = LV3 + SHIFT
│ 1 3 │ 1 = NORMAL, 3 = LV3
└─────┘
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ HHKB Professional HYBRID • Type-S │
│ ┏━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┓ │▒▒
│ ┃ ┃ ! ½ ┃ " ┃ # ˝ ┃ $ ¼ ┃ % ˇ ┃ & √ ┃ / ┃ ( ┃ ) ┃ = ┃ ? ¯ ┃ { ˛ ┃ } ┃ * ¦ ┃ │▒▒
│ ┃Esc ┃ 1 ¶ ┃ 2 @ ┃ 3 £ ┃ 4 § ┃ 5 € ┃ 6 ¥ ┃ 7 ┃ 8 [ ┃ 9 ] ┃ 0 \ ┃ + ┃ ↓ ← ┃ ↑ → ┃ ⌦ | ┃ │▒▒
│ ┣━━━━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━━━━┫ │▒▒
│ ┃ ┃ Q ┃ W ┃ E ┃ R ┃ T ┃ Y ┃ U ┃ I ┃ O ┃ P ┃ Å ┃ ^ ┃ ┃ │▒▒
│ ┃Tab ↹ ┃ q ┃ w ┃ e € ┃ r ┃ t ┃ y ┃ u ┃ i ┃ o ┃ p ↑ ┃ å ┃ ' ~ ┃BKSP ⌫ ┃ │▒▒
│ ┣━━━━━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻━━━━━━━━┫ │▒▒
│ ┃ ┃ A ┃ S ┃ D ┃ F ┃ G ┃ H ┃ J ┃ K ┃ L ┃ Ö ┃ Ä ┃ ┃ │▒▒
│ ┃Control ┃ a ┃ s ┃ d ┃ f ┃ g ┃ h ┃ j ┃ k ┃ l ← ┃ ö ↓ ┃ ä → ┃Enter ⏎ ┃ │▒▒
│ ┣━━━━━━━━━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━━━━━┳━━━━━┫ │▒▒
│ ┃ ┃ Z ┃ X ┃ C ┃ V ┃ B ┃ N ┃ M ┃ ; „ ┃ : … ┃ _ ┃ ┃ ┃ │▒▒
│ ┃Shift ⇧ ┃ z < ┃ x > ┃ c ┃ v ┃ b ┃ n ┃ m ┃ , ┃ . · ┃ - ┃Shift ⇧ ┃Fn ┃ │▒▒
│ ┗━━━━━━━━┳━━━━┻┳━━━━┻━━━┳━┻━━━━━┻━━━━━┻━━━━━┻━━━━━┻━━━━━┻━━━┳━┻━━━━━┻┳━━━━┻┳━━━━━━━━┻━━━━━┛ │▒▒
│ ┃ ┃ ┃ ␣ ⍽ ┃ ┃ ┃ │▒▒
│ ┃Alt ┃ <> ┃ ␣ Space ⍽ ┃ <> ┃Alt ┃ │▒▒
│ ┗━━━━━┻━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┻━━━━━┛ │▒▒
╰─────────────────────────────────────────────────────────────────────────────────────────────╯▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
```

View File

@@ -0,0 +1,30 @@
{
config,
lib,
hostConfig,
...
}: let
path = "${hostConfig}/cnix/xkb/symbols";
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.sysd.session.xserver.amd.hhkbse;
in {
options = {
modules.sysd.session.xserver.amd.hhkbse.enable = mkEnableOption "Enables xserver for amdgpu with HHKBSE";
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
videoDrivers = ["amdgpu"];
xkb = {
extraLayouts.hhkbse = {
description = "HHKBse by cnst";
languages = ["se"];
symbolsFile = "${path}/hhkbse";
};
layout = "hhkbse";
variant = "";
options = "lv3:rwin_switch";
};
};
};
}