mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-02-18 22:42:40 +00:00
update system
This commit is contained in:
@@ -17,24 +17,22 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
windowrulev2 =
|
||||
let
|
||||
firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$";
|
||||
firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$";
|
||||
pipPadding = toString (homeConfig.theme.md3-evo.padding * 2);
|
||||
in
|
||||
[
|
||||
"keepaspectratio,${firefoxPip}"
|
||||
"noborder,${firefoxPip}"
|
||||
"float,${firefoxPip}"
|
||||
"float,${firefoxPipInitial}"
|
||||
"pin,${firefoxPip}"
|
||||
"pin,${firefoxPipInitial}"
|
||||
"fullscreenstate 2 0,${firefoxPip}"
|
||||
"fullscreenstate 2 0,${firefoxPipInitial}"
|
||||
"move ${pipPadding} ${pipPadding},${firefoxPip}"
|
||||
"move ${pipPadding} ${pipPadding},${firefoxPipInitial}"
|
||||
];
|
||||
windowrule = [
|
||||
{
|
||||
name = "firefox-pip";
|
||||
"match:class" = "^(firefox)$";
|
||||
"match:title" = "^(Picture-in-Picture)$";
|
||||
float = true;
|
||||
no_follow_mouse = true;
|
||||
opaque = true;
|
||||
pin = true;
|
||||
fullscreen_state = "2 0";
|
||||
move = "8 8";
|
||||
keep_aspect_ratio = true;
|
||||
border_size = "0";
|
||||
animation = "fade";
|
||||
}
|
||||
];
|
||||
};
|
||||
programs.niri.settings.window-rules = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user