1
1
Fork 0

Compare commits

..

No commits in common. "f1e4a20eb19704a2a4bd6a1c231767b7f669ef8f" and "8894f5b5013703bb8d2972c622270e6cf27f634e" have entirely different histories.

2 changed files with 18 additions and 45 deletions

View file

@ -30,48 +30,40 @@ in {
### Defaults ### Defaults
{ {
# Global # Global
geometry-corner-radius = { geometry-corner-radius = let
top-left = config.custom.rounding; radius = config.custom.rounding + 0.0; # Convert to float
top-right = config.custom.rounding; in {
bottom-right = config.custom.rounding; top-left = radius;
bottom-left = config.custom.rounding; top-right = radius;
bottom-right = radius;
bottom-left = radius;
}; };
clip-to-geometry = true; clip-to-geometry = true;
open-floating = true;
} }
{ {
# Floating # Floating
matches = [ matches = [{is-floating = true;}];
{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 = [ matches = [{at-startup = true;}];
{at-startup = true;}
];
} }
{ {
# Android # Android
matches = [ matches = [{app-id = "^[Ww]aydroid.*$";}];
{app-id = "^[Ww]aydroid.*$";}
];
open-floating = false;
} }
{ {
# Browsers # Browsers
matches = map (match: {at-startup = true;} // match) [ matches = [
{app-id = "^brave-browser$";} {app-id = "^brave-browser$";}
{app-id = "^chromium-browser$";} {app-id = "^chromium-browser$";}
{app-id = "^firefox.*$";} {app-id = "^firefox.*$";}
@ -90,7 +82,7 @@ in {
then 0.4 then 0.4
else 0.8; else 0.8;
open-floating = false; min-width = builtins.floor (config.custom.width * 0.3);
} }
{ {
@ -101,16 +93,11 @@ 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 = [ matches = [{app-id = "^dropdown$";}];
{app-id = "^dropdown$";}
];
} }
{ {
@ -119,17 +106,11 @@ in {
{app-id = "^codium$";} {app-id = "^codium$";}
{app-id = "^obsidian$";} {app-id = "^obsidian$";}
]; ];
open-floating = false;
} }
{ {
# Files # Files
matches = [ matches = [{app-id = "^org\.gnome\.Nautilus$";}];
{app-id = "^org\.gnome\.Nautilus$";}
];
open-floating = false;
} }
{ {
@ -143,7 +124,6 @@ in {
]; ];
default-column-width = {}; # Window-defined default-column-width = {}; # Window-defined
open-floating = false;
variable-refresh-rate = true; variable-refresh-rate = true;
} }
@ -159,8 +139,6 @@ in {
{app-id = "^totem$";} {app-id = "^totem$";}
{app-id = "^YouTube Music$";} {app-id = "^YouTube Music$";}
]; ];
open-floating = false;
} }
{ {
@ -170,8 +148,6 @@ in {
{app-id = "^libreoffice$";} {app-id = "^libreoffice$";}
{app-id = "^ONLYOFFICE Desktop Editors$";} {app-id = "^ONLYOFFICE Desktop Editors$";}
]; ];
open-floating = false;
} }
(let (let
@ -183,9 +159,7 @@ in {
}; };
in { in {
# PiP # PiP
matches = [ matches = [{title = "^Picture.in.[Pp]icture$";}];
{title = "^Picture.in.[Pp]icture$";}
];
default-floating-position = { default-floating-position = {
relative-to = "top-right"; relative-to = "top-right";
@ -195,6 +169,7 @@ 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;
}) })
@ -207,7 +182,7 @@ in {
{app-id = "^org\.wezfurlong\.wezterm$";} {app-id = "^org\.wezfurlong\.wezterm$";}
]; ];
open-floating = false; #// default-column-display = "tabbed";
} }
{ {
@ -216,8 +191,6 @@ in {
{app-id = "^1Password$";} {app-id = "^1Password$";}
{app-id = "^Bitwarden$";} {app-id = "^Bitwarden$";}
]; ];
open-floating = false;
} }
{ {

View file

@ -223,7 +223,7 @@ with lib; {
"media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled" = true; "media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled" = true;
"media.videocontrols.picture-in-picture.enabled" = true; "media.videocontrols.picture-in-picture.enabled" = true;
"media.videocontrols.picture-in-picture.respect-disablePictureInPicture" = false; "media.videocontrols.picture-in-picture.respect-disablePictureInPicture" = false;
"media.videocontrols.picture-in-picture.urlbar-button.enabled" = false; "media.videocontrols.picture-in-picture.urlbar-button.enabled" = true;
"media.videocontrols.picture-in-picture.video-toggle.enabled" = true; "media.videocontrols.picture-in-picture.video-toggle.enabled" = true;
"media.videocontrols.picture-in-picture.video-toggle.has-used" = true; "media.videocontrols.picture-in-picture.video-toggle.has-used" = true;
"media.videocontrols.picture-in-picture.video-toggle.min-video-secs" = 0; # No minimum duration "media.videocontrols.picture-in-picture.video-toggle.min-video-secs" = 0; # No minimum duration