1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
f1e4a20eb1
firefox: disable pip in address bar
Signed-off-by: Myned <dev@bjork.tech>
2025-02-18 17:22:13 -06:00
d88e772f82
niri: float windows by default
Signed-off-by: Myned <dev@bjork.tech>
2025-02-18 17:21:58 -06:00
2 changed files with 45 additions and 18 deletions

View file

@ -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;
} }
{ {

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" = true; "media.videocontrols.picture-in-picture.urlbar-button.enabled" = false;
"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