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