Fix switchable and dual keyboard layout configurations

This commit is contained in:
Tyler Kelley 2024-02-12 17:22:06 -06:00
parent f4c143795e
commit 93b2dede38
3 changed files with 9 additions and 6 deletions

View File

@ -7,7 +7,8 @@ let
browser cpuType gpuType
wallpaperDir borderAnim
theKBDLayout terminal
theSecondKBDLayout sdl-videodriver;
theSecondKBDLayout
theKBDVariant sdl-videodriver;
in with lib; {
wayland.windowManager.hyprland = {
enable = true;
@ -34,7 +35,7 @@ in with lib; {
}
input {
kb_layout = ${theKBDLayout},${theSecondKBDLayout}
kb_layout = ${theKBDLayout}, ${theSecondKBDLayout}
kb_options = grp:alt_shift_toggle
kb_options=caps:super
follow_mouse = 1

View File

@ -1,12 +1,13 @@
{ pkgs, config, ... }:
let inherit (import ../../options.nix) theKBDLayout; in
let inherit (import ../../options.nix) theKBDVariant
theKBDLayout theSecondKBDLayout; in
{
services.xserver = {
enable = true;
xkb = {
variant = "";
layout = "${theKBDLayout}";
variant = "${theKBDVariant}";
layout = "${theKBDLayout}, ${theSecondKBDLayout}";
};
libinput.enable = true;
displayManager.sddm = {

View File

@ -34,7 +34,8 @@ in {
clock24h = false;
theLocale = "en_US.UTF-8";
theKBDLayout = "us";
theSecondKBDLayout = "pl";
theSecondKBDLayout = "de";
theKBDVariant = "";
theLCVariables = "en_US.UTF-8";
theTimezone = "America/Chicago";
theShell = "bash"; # Possible options: bash, zsh