fix xkb issues, change espanso formatting

This commit is contained in:
alisceon 2026-03-13 20:04:46 +01:00
parent ef0ae94080
commit a100acda87
4 changed files with 18 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, repoRoot, ... }:
{ pkgs, repoRoot, lib, ... }:
let
commands = import ../../../../lib/commands.nix { inherit pkgs; };
inherit (commands) uwsm lock term notify nag dmenu espanso;
@ -54,7 +54,7 @@ in
pointer_accel = "0.5";
};
"*" = {
xkb_layout = "se,us";
xkb_layout = lib.mkDefault "se,us";
xkb_options = "grp:win_space_toggle";
};
};
@ -121,7 +121,7 @@ in
"${key_mod}+${key_mod_misc}+Tab" = "workspace next";
"${key_mod}+${key_mod_misc}+Shift+Tab" = "workspace prev";
"Mod4+space" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/get_xkb.xsh)\"";
"Mod4+space" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/toggle_xkb.xsh)\"";
"${key_mod}+Shift+r" = "reload";
"${key_mod}+Ctrl+r" = "restart";
"${key_mod}+Backspace" = "exec ${nag} -m 'TuneD profiles:' -Z 'Performance' 'tuned-adm profile accelerator-performance' -Z 'Balanced' 'tuned-adm profile balanced' -Z 'Power Save' 'tuned-adm profile powersave'";