fix keyboard on laptop
This commit is contained in:
parent
859d354ccc
commit
e67707b0f0
6 changed files with 17 additions and 46 deletions
|
|
@ -92,6 +92,14 @@ in {
|
||||||
home-manager.users.${user}.imports = [
|
home-manager.users.${user}.imports = [
|
||||||
{
|
{
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.05";
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
input = {
|
||||||
|
kb_variant = "dvorak,";
|
||||||
|
kb_layout = "gb,gb";
|
||||||
|
kb_options = "grp:alt_shift_toggle,caps:escape";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,12 @@ in {
|
||||||
workspace = 4, monitor:DP-1
|
workspace = 4, monitor:DP-1
|
||||||
workspace = 5, monitor:DP-1
|
workspace = 5, monitor:DP-1
|
||||||
'';
|
'';
|
||||||
|
settings = {
|
||||||
|
"device:zsa-technology-labs-moonlander-mark-i" = {
|
||||||
|
kb_variant = "";
|
||||||
|
kb_options = "esperanto:qwerty,lv3:ralt_switch";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@
|
||||||
natural_scroll = true;
|
natural_scroll = true;
|
||||||
scroll_factor = 0.5;
|
scroll_factor = 0.5;
|
||||||
};
|
};
|
||||||
|
kb_options = lib.mkDefault "caps:escape";
|
||||||
|
kb_layout = lib.mkDefault "gb";
|
||||||
|
numlock_by_default = true;
|
||||||
};
|
};
|
||||||
gestures = {
|
gestures = {
|
||||||
workspace_swipe = true;
|
workspace_swipe = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
user = config.user;
|
user = config.user;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/keyboard.nix
|
|
||||||
./modules/display.nix
|
./modules/display.nix
|
||||||
./modules/laptop.nix
|
./modules/laptop.nix
|
||||||
../hardware/displays.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;
|
scaling = 1.2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
keyboard.dvorak.enable = true;
|
|
||||||
|
|
||||||
home-manager.users.${user}.imports = [
|
home-manager.users.${user}.imports = [
|
||||||
{
|
{
|
||||||
|
|
@ -35,11 +34,6 @@ in {
|
||||||
bind = [
|
bind = [
|
||||||
"SUPER_SHIFT, Q, killactive,"
|
"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