662d24a89c
- Introduced `binds.nix` for Hyprland, defining keybindings for various applications and workspace management. - Added `base-settings.nix` and `window-rules.nix` for Niri, establishing keyboard input settings and window management rules. - Updated `default.nix` for both Hyprland and Niri to import new configuration files, enhancing modularity and maintainability.
38 lines
761 B
Nix
38 lines
761 B
Nix
{ ... }: {
|
|
flake.lib.niriWindowRules = [
|
|
{
|
|
matches = [
|
|
{
|
|
app-id = "^$";
|
|
title = "^$";
|
|
}
|
|
];
|
|
open-floating = true;
|
|
open-focused = false;
|
|
}
|
|
{
|
|
matches = [
|
|
{ title = "^(Picture-in-Picture|Picture in picture)$"; }
|
|
];
|
|
open-floating = true;
|
|
open-focused = false;
|
|
default-column-width = { fixed = 640; };
|
|
default-window-height = { fixed = 360; };
|
|
default-floating-position = _: {
|
|
props = {
|
|
x = 32;
|
|
y = 32;
|
|
relative-to = "bottom-right";
|
|
};
|
|
};
|
|
}
|
|
{
|
|
matches = [
|
|
{ app-id = "^Minecraft\\*"; }
|
|
{ app-id = "^Minecraft$"; }
|
|
];
|
|
tiled-state = true;
|
|
}
|
|
];
|
|
}
|