niri: float windows by default
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
8894f5b501
commit
d88e772f82
1 changed files with 44 additions and 17 deletions
|
@ -30,40 +30,48 @@ in {
|
||||||
### Defaults
|
### Defaults
|
||||||
{
|
{
|
||||||
# Global
|
# Global
|
||||||
geometry-corner-radius = let
|
geometry-corner-radius = {
|
||||||
radius = config.custom.rounding + 0.0; # Convert to float
|
top-left = config.custom.rounding;
|
||||||
in {
|
top-right = config.custom.rounding;
|
||||||
top-left = radius;
|
bottom-right = config.custom.rounding;
|
||||||
top-right = radius;
|
bottom-left = config.custom.rounding;
|
||||||
bottom-right = radius;
|
|
||||||
bottom-left = radius;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
clip-to-geometry = true;
|
clip-to-geometry = true;
|
||||||
|
open-floating = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Floating
|
# Floating
|
||||||
matches = [{is-floating = true;}];
|
matches = [
|
||||||
|
{is-floating = true;}
|
||||||
|
];
|
||||||
|
|
||||||
border.enable = false;
|
border.enable = false;
|
||||||
focus-ring.enable = false;
|
focus-ring.enable = false;
|
||||||
|
#// shadow.enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Startup
|
# Startup
|
||||||
#?? <= 60 secs after niri launches
|
#?? <= 60 secs after niri launches
|
||||||
matches = [{at-startup = true;}];
|
matches = [
|
||||||
|
{at-startup = true;}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Android
|
# Android
|
||||||
matches = [{app-id = "^[Ww]aydroid.*$";}];
|
matches = [
|
||||||
|
{app-id = "^[Ww]aydroid.*$";}
|
||||||
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Browsers
|
# Browsers
|
||||||
matches = [
|
matches = map (match: {at-startup = true;} // match) [
|
||||||
{app-id = "^brave-browser$";}
|
{app-id = "^brave-browser$";}
|
||||||
{app-id = "^chromium-browser$";}
|
{app-id = "^chromium-browser$";}
|
||||||
{app-id = "^firefox.*$";}
|
{app-id = "^firefox.*$";}
|
||||||
|
@ -82,7 +90,7 @@ in {
|
||||||
then 0.4
|
then 0.4
|
||||||
else 0.8;
|
else 0.8;
|
||||||
|
|
||||||
min-width = builtins.floor (config.custom.width * 0.3);
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -93,11 +101,16 @@ in {
|
||||||
{app-id = "^Element$";}
|
{app-id = "^Element$";}
|
||||||
{app-id = "^org\.telegram\.desktop$";}
|
{app-id = "^org\.telegram\.desktop$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
#// default-column-display = "tabbed";
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Dropdown terminal
|
# Dropdown terminal
|
||||||
matches = [{app-id = "^dropdown$";}];
|
matches = [
|
||||||
|
{app-id = "^dropdown$";}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -106,11 +119,17 @@ in {
|
||||||
{app-id = "^codium$";}
|
{app-id = "^codium$";}
|
||||||
{app-id = "^obsidian$";}
|
{app-id = "^obsidian$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# Files
|
# Files
|
||||||
matches = [{app-id = "^org\.gnome\.Nautilus$";}];
|
matches = [
|
||||||
|
{app-id = "^org\.gnome\.Nautilus$";}
|
||||||
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -124,6 +143,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
default-column-width = {}; # Window-defined
|
default-column-width = {}; # Window-defined
|
||||||
|
open-floating = false;
|
||||||
variable-refresh-rate = true;
|
variable-refresh-rate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,6 +159,8 @@ in {
|
||||||
{app-id = "^totem$";}
|
{app-id = "^totem$";}
|
||||||
{app-id = "^YouTube Music$";}
|
{app-id = "^YouTube Music$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -148,6 +170,8 @@ in {
|
||||||
{app-id = "^libreoffice$";}
|
{app-id = "^libreoffice$";}
|
||||||
{app-id = "^ONLYOFFICE Desktop Editors$";}
|
{app-id = "^ONLYOFFICE Desktop Editors$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
(let
|
(let
|
||||||
|
@ -159,7 +183,9 @@ in {
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# PiP
|
# PiP
|
||||||
matches = [{title = "^Picture.in.[Pp]icture$";}];
|
matches = [
|
||||||
|
{title = "^Picture.in.[Pp]icture$";}
|
||||||
|
];
|
||||||
|
|
||||||
default-floating-position = {
|
default-floating-position = {
|
||||||
relative-to = "top-right";
|
relative-to = "top-right";
|
||||||
|
@ -169,7 +195,6 @@ in {
|
||||||
|
|
||||||
default-column-width.fixed = pip.w;
|
default-column-width.fixed = pip.w;
|
||||||
default-window-height.fixed = pip.h;
|
default-window-height.fixed = pip.h;
|
||||||
open-floating = true;
|
|
||||||
open-focused = false;
|
open-focused = false;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -182,7 +207,7 @@ in {
|
||||||
{app-id = "^org\.wezfurlong\.wezterm$";}
|
{app-id = "^org\.wezfurlong\.wezterm$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
#// default-column-display = "tabbed";
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -191,6 +216,8 @@ in {
|
||||||
{app-id = "^1Password$";}
|
{app-id = "^1Password$";}
|
||||||
{app-id = "^Bitwarden$";}
|
{app-id = "^Bitwarden$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
open-floating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue