make mouse script work and add window rules

This commit is contained in:
cy 2025-01-19 00:57:32 -05:00
parent afc2e8ea66
commit 973993af60
2 changed files with 47 additions and 0 deletions

View file

@ -39,6 +39,25 @@ in
always-center-single-column = true;
border.enable = false;
};
window-rules = [
{
matches = [{ app-id = "anki"; title = "Add"; }];
open-floating = true;
}
{
matches = [{ app-id = "foot"; }];
default-column-width.proportion = .5;
}
{
matches = [{ app-id = "Bitwarden"; }];
open-floating = true;
}
{
matches = [{ app-id = "mpv"; }];
open-floating = true;
}
];
};
programs.niri.settings.binds =
@ -112,5 +131,8 @@ in
"Mod+Alt+E".action = spawn "evolution";
"Mod+P".action = spawn "bitwarden";
"Mod+Comma".action = sh clipboard;
"MouseForward".action = spawn "sh" "${./scripts/remote.sh}" "btn1";
"MouseBack".action = spawn "sh" "${./scripts/remote.sh}";
};
}