From 57788942b2d7175df7f7e87b6e0697e1b6fc80ff Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 16 Nov 2025 15:29:21 +0100 Subject: [PATCH] feat(hyprland): enable US keyboard layout as second layout Also add it to my Waybar config --- users/modules/desktop/hyprland.nix | 5 +++-- users/phundrak/config/waybar/config | 18 +++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/users/modules/desktop/hyprland.nix b/users/modules/desktop/hyprland.nix index c889124..ab1d733 100644 --- a/users/modules/desktop/hyprland.nix +++ b/users/modules/desktop/hyprland.nix @@ -51,8 +51,8 @@ in { importantPrefixes = ["$left" "$right" "$up" "$down" "$menu"]; settings = { input = { - kb_layout = "fr"; - kb_variant = "bepo_afnor"; + kb_layout = "fr,us"; + kb_variant = "bepo_afnor,"; # kb_options = "caps:ctrl_modifier"; numlock_by_default = true; follow_mouse = 1; @@ -239,6 +239,7 @@ in { bindl = , XF86MonBrightnessDown, exec, xbacklight -perceived -dec 2 bindl = , XF86KbdBrightnessUp, exec, xbacklight -perceived -inc 2 bindl = , XF86KbdBrightnessDown, exec, xbacklight -perceived -dec 2 + bind = SUPER, a, exec, hyprctl switchxkblayout glove80-keyboard next bind = SUPER, $left, movefocus, l bind = SUPER, $right, movefocus, r bind = SUPER, $up, movefocus, u diff --git a/users/phundrak/config/waybar/config b/users/phundrak/config/waybar/config index f18eb6b..56cb85d 100644 --- a/users/phundrak/config/waybar/config +++ b/users/phundrak/config/waybar/config @@ -6,7 +6,7 @@ // "width": 1280, // Waybar width "spacing": 2, // Gaps between modules (4px) // Choose the order of the modules - "modules-left": ["hyprland/workspaces", "hyprland/submap", "hyprland/window"], + "modules-left": ["hyprland/workspaces", "hyprland/language", "hyprland/submap", "hyprland/window"], "modules-center": [], "modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "clock", "tray"], @@ -35,16 +35,12 @@ "unlocked": "" } }, - "sway/mode": { - "format": "{}" - }, - "sway/scratchpad": { - "format": "{icon} {count}", - "show-empty": false, - "format-icons": ["", ""], - "tooltip": true, - "tooltip-format": "{app}: {title}" - }, + { +"hyprland/language": { + "format": "Lang: {}", + "format-en": "gaming", +}, + }, "mpd": { "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", "format-disconnected": "Disconnected ",