fix keyboard on laptop
This commit is contained in:
parent
859d354ccc
commit
e67707b0f0
6 changed files with 17 additions and 46 deletions
|
|
@ -9,7 +9,6 @@
|
|||
user = config.user;
|
||||
in {
|
||||
imports = [
|
||||
./modules/keyboard.nix
|
||||
./modules/display.nix
|
||||
./modules/laptop.nix
|
||||
../hardware/displays.nix
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
user = config.user;
|
||||
in
|
||||
with lib; {
|
||||
options.keyboard = {
|
||||
dvorak = {
|
||||
enable = mkEnableOption "use a good keyboard layout on a qwerty keyboard";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
home-manager.users.${user}.imports = [
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
input = {
|
||||
kb_layout = "gb";
|
||||
kb_options = "caps:escape";
|
||||
numlock_by_default = true;
|
||||
};
|
||||
# moonlander is programmed in dvorak!
|
||||
"device:zsa-technology-labs-moonlander-mark-i" = {
|
||||
kb_variant = "";
|
||||
kb_options = "esperanto:qwerty,lv3:ralt_switch";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
services.xserver.xkbVariant =
|
||||
if config.keyboard.dvorak.enable
|
||||
then "dvorak"
|
||||
else "";
|
||||
};
|
||||
}
|
||||
|
|
@ -22,7 +22,6 @@ in {
|
|||
scaling = 1.2;
|
||||
};
|
||||
};
|
||||
keyboard.dvorak.enable = true;
|
||||
|
||||
home-manager.users.${user}.imports = [
|
||||
{
|
||||
|
|
@ -35,11 +34,6 @@ in {
|
|||
bind = [
|
||||
"SUPER_SHIFT, Q, killactive,"
|
||||
];
|
||||
"device:at-translated-set-2-keyboard" = {
|
||||
kb_variant = ",dvorak";
|
||||
kb_layout = "gb,gb";
|
||||
kb_options = "grp:alt_shift_toggle,caps:escape";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue