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
{
# Global
geometry-corner-radius = {
top-left = config.custom.rounding;
top-right = config.custom.rounding;
bottom-right = config.custom.rounding;
bottom-left = config.custom.rounding;
geometry-corner-radius = let
radius = config.custom.rounding + 0.0; # Convert to float
in {
top-left = radius;
top-right = radius;
bottom-right = radius;
bottom-left = radius;
};
clip-to-geometry = true;
open-floating = true;
}
{
# Floating
matches = [
{is-floating = true;}
];
matches = [{is-floating = true;}];
border.enable = false;
focus-ring.enable = false;
#// shadow.enable = true;
}
{
# Startup
#?? <= 60 secs after niri launches
matches = [
{at-startup = true;}
];
matches = [{at-startup = true;}];
}
{
# Android
matches = [
{app-id = "^[Ww]aydroid.*$";}
];
open-floating = false;
matches = [{app-id = "^[Ww]aydroid.*$";}];
}
{
# Browsers
matches = map (match: {at-startup = true;} // match) [
matches = [
{app-id = "^brave-browser$";}
{app-id = "^chromium-browser$";}
{app-id = "^firefox.*$";}
@ -90,7 +82,7 @@ in {
then 0.4
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 = "^org\.telegram\.desktop$";}
];
#// default-column-display = "tabbed";
open-floating = false;
}
{
# Dropdown terminal
matches = [
{app-id = "^dropdown$";}
];
matches = [{app-id = "^dropdown$";}];
}
{
@ -119,17 +106,11 @@ in {
{app-id = "^codium$";}
{app-id = "^obsidian$";}
];
open-floating = false;
}
{
# Files
matches = [
{app-id = "^org\.gnome\.Nautilus$";}
];
open-floating = false;
matches = [{app-id = "^org\.gnome\.Nautilus$";}];
}
{
@ -143,7 +124,6 @@ in {
];
default-column-width = {}; # Window-defined
open-floating = false;
variable-refresh-rate = true;
}
@ -159,8 +139,6 @@ in {
{app-id = "^totem$";}
{app-id = "^YouTube Music$";}
];
open-floating = false;
}
{
@ -170,8 +148,6 @@ in {
{app-id = "^libreoffice$";}
{app-id = "^ONLYOFFICE Desktop Editors$";}
];
open-floating = false;
}
(let
@ -183,9 +159,7 @@ in {
};
in {
# PiP
matches = [
{title = "^Picture.in.[Pp]icture$";}
];
matches = [{title = "^Picture.in.[Pp]icture$";}];
default-floating-position = {
relative-to = "top-right";
@ -195,6 +169,7 @@ in {
default-column-width.fixed = pip.w;
default-window-height.fixed = pip.h;
open-floating = true;
open-focused = false;
})
@ -207,7 +182,7 @@ in {
{app-id = "^org\.wezfurlong\.wezterm$";}
];
open-floating = false;
#// default-column-display = "tabbed";
}
{
@ -216,8 +191,6 @@ in {
{app-id = "^1Password$";}
{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.enabled" = true;
"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.has-used" = true;
"media.videocontrols.picture-in-picture.video-toggle.min-video-secs" = 0; # No minimum duration