Modules/Hyprland: Update keyboard layout options
This commit is contained in:
@ -21,8 +21,11 @@
|
|||||||
fcitx.enable = true;
|
fcitx.enable = true;
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
kb-layout = "us";
|
keyboard = {
|
||||||
kb-variant = "altgr-intl";
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
option = "nodeadkeys";
|
||||||
|
};
|
||||||
|
|
||||||
monitors = {
|
monitors = {
|
||||||
"HDMI-A-1" = {
|
"HDMI-A-1" = {
|
||||||
|
@ -7,10 +7,11 @@
|
|||||||
config = {
|
config = {
|
||||||
modules = {
|
modules = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
# kb-layout = "de";
|
keyboard = {
|
||||||
# kb-variant = "nodeadkeys";
|
layout = "us";
|
||||||
kb-layout = "us";
|
variant = "altgr-intl";
|
||||||
kb-variant = "altgr-intl";
|
option = "nodeadkeys";
|
||||||
|
};
|
||||||
|
|
||||||
monitors = {
|
monitors = {
|
||||||
"eDP-1" = {
|
"eDP-1" = {
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
"hyprsunset --identity"
|
"hyprsunset --identity"
|
||||||
|
|
||||||
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
|
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
|
||||||
"setxkbmap -layout ${hyprland.kb-layout} -variant ${hyprland.kb-variant} -model pc104"
|
"setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104"
|
||||||
|
|
||||||
# HACK: Flatpak doesn't find applications in the system PATH
|
# HACK: Flatpak doesn't find applications in the system PATH
|
||||||
"systemctl --user import-environment PATH && systemctl --user restart xdg-desktop-portal.service"
|
"systemctl --user import-environment PATH && systemctl --user restart xdg-desktop-portal.service"
|
||||||
@ -419,10 +419,10 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "${hyprland.kb-layout}";
|
kb_layout = hyprland.keyboard.layout;
|
||||||
kb_variant = "${hyprland.kb-variant}";
|
kb_variant = hyprland.keyboard.variant;
|
||||||
|
kb_options = hyprland.keyboard.option;
|
||||||
kb_model = "pc104";
|
kb_model = "pc104";
|
||||||
kb_options = "";
|
|
||||||
kb_rules = "";
|
kb_rules = "";
|
||||||
|
|
||||||
follow_mouse = true;
|
follow_mouse = true;
|
||||||
|
@ -5,16 +5,24 @@
|
|||||||
}: rec {
|
}: rec {
|
||||||
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
||||||
|
|
||||||
kb-layout = lib.mkOption {
|
keyboard = {
|
||||||
type = lib.types.str;
|
layout = lib.mkOption {
|
||||||
example = "us";
|
type = lib.types.str;
|
||||||
description = "Keyboard layout to use";
|
example = "us";
|
||||||
};
|
description = "Keyboard layout to use";
|
||||||
|
};
|
||||||
|
|
||||||
kb-variant = lib.mkOption {
|
variant = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
example = "altgr-intl";
|
example = "altgr-intl";
|
||||||
description = "Keyboard layout variant";
|
description = "Keyboard layout variant";
|
||||||
|
};
|
||||||
|
|
||||||
|
option = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "nodeadkeys";
|
||||||
|
description = "Keyboard layout options";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dunst.enable = lib.mkEnableOption "Enable dunst notification daemon";
|
dunst.enable = lib.mkEnableOption "Enable dunst notification daemon";
|
||||||
|
Reference in New Issue
Block a user