home/programs/niri: skip hotkeys overlay at startup

This commit is contained in:
Anthony Rodriguez 2024-10-08 13:54:32 +02:00
parent 786cdbf979
commit 25993d2754
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -10,50 +10,50 @@ in {
imports = [./binds.nix]; imports = [./binds.nix];
programs.niri = { programs.niri = {
settings = { settings = {
environment = {
"NIXOS_OZONE_WL" = "1";
"DISPLAY" = ":0";
"_JAVA_AWT_WM_NONREPARENTING" = "1"; # https://wiki.archlinux.org/title/Sway#Java_applications
};
prefer-no-csd = true;
window-rules = [
{
draw-border-with-background = false;
geometry-corner-radius = let
r = 8.0;
in {
top-left = r;
top-right = r;
bottom-left = r;
bottom-right = r;
};
clip-to-geometry = true;
}
{
matches = [
{app-id = "foot";}
];
default-column-width = {proportion = 0.5;};
}
];
input.keyboard.xkb = { input.keyboard.xkb = {
layout = "us"; layout = "us";
options = "compose:ralt"; options = "compose:ralt";
}; };
prefer-no-csd = true;
hotkey-overlay.skip-at-startup = true;
layout = { layout = {
focus-ring = { focus-ring = {
enable = true; enable = true;
active.color = "#${colors.base0E}"; active.color = "#${colors.base0E}";
}; };
center-focused-column = "always"; center-focused-column = "always";
always-center-single-column = true; always-center-single-column = true;
}; };
}; };
window-rules = [
{
draw-border-with-background = false;
geometry-corner-radius = let
r = 8.0;
in {
top-left = r;
top-right = r;
bottom-left = r;
bottom-right = r;
};
clip-to-geometry = true;
}
{
matches = [
{app-id = "foot";}
];
default-column-width = {proportion = 0.5;};
}
];
environment = {
"NIXOS_OZONE_WL" = "1";
"DISPLAY" = ":0";
"_JAVA_AWT_WM_NONREPARENTING" = "1"; # https://wiki.archlinux.org/title/Sway#Java_applications
};
}; };
# copied from https://github.com/linyinfeng/dotfiles/blob/c00fe3b1562ad947672863a43e455bc2f01a56b6/home-manager/profiles/niri/default.nix#L594-L611 # copied from https://github.com/linyinfeng/dotfiles/blob/c00fe3b1562ad947672863a43e455bc2f01a56b6/home-manager/profiles/niri/default.nix#L594-L611