From 3a09eb1ae82f11e22e5a8d3769606612c185a537 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 4 Sep 2023 01:14:33 +0200 Subject: [PATCH] feat: added multiple keyboard layouts --- modules/impermanence/users.nix | 11 ++++++++--- users/common/graphical/sway/default.nix | 6 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/impermanence/users.nix b/modules/impermanence/users.nix index 4a77748..4979cba 100644 --- a/modules/impermanence/users.nix +++ b/modules/impermanence/users.nix @@ -7,9 +7,13 @@ userName: { users.${userName} = let hmConfig = config.home-manager.users.${userName}; in { - files = [ - ".ssh/known_hosts" - ]; + files = with lib.lists; + [ + ".ssh/known_hosts" + ] + ++ optionals hmConfig.programs.rofi.enable [ + ".cache/rofi-3.runcache" + ]; directories = with lib.lists; [] ++ @@ -38,6 +42,7 @@ userName: { [ ".local/share/Steam" ".steam" + # Ken follets pillars of earth ".local/share//Daedalic Entertainment GmbH/" ]; }; diff --git a/users/common/graphical/sway/default.nix b/users/common/graphical/sway/default.nix index 8509ee5..1f02d18 100644 --- a/users/common/graphical/sway/default.nix +++ b/users/common/graphical/sway/default.nix @@ -17,8 +17,10 @@ menu = "rofi -show run"; input = { "*" = { - xkb_layout = "de"; - xkb_variant = "bone"; + xkb_layout = "de,de"; + # games are stupid so the main ui has to be de() without bone + xkb_variant = ",bone"; + xkb_options = "grp:win_space_toggle"; repeat_delay = "235"; repeat_rate = "60"; accel_profile = "flat";