diff --git a/profiles/applications/firefox.nix b/profiles/applications/firefox.nix index 6c6ab4b..36fe284 100644 --- a/profiles/applications/firefox.nix +++ b/profiles/applications/firefox.nix @@ -21,6 +21,27 @@ in { enable = true; browsers = [ "firefox" ]; }; + wayland.windowManager.sway.config = { + window.commands = [ + { + criteria = { title = "Firefox — Sharing Indicator"; }; + command = "floating enable"; + } + { + criteria = { title = "Firefox — Sharing Indicator"; }; + command = "no_focus"; + } + { + criteria = { title = "Firefox — Sharing Indicator"; }; + command = "resize set 0 0"; + } + { + criteria = { title = "Firefox — Sharing Indicator"; }; + command = "move absolute position 10 10"; + } + ]; + }; + programs.firefox = { enable = true; package = pkgs.firefox-wayland; @@ -84,7 +105,6 @@ in { "toolkit.telemetry.unified" = false; "toolkit.telemetry.updatePing.enabled" = false; - "experiments.activeExperiment" = false; "experiments.enabled" = false; "experiments.supported" = false; diff --git a/profiles/workspace/sway/default.nix b/profiles/workspace/sway/default.nix index d0113a6..76f3a2d 100755 --- a/profiles/workspace/sway/default.nix +++ b/profiles/workspace/sway/default.nix @@ -89,14 +89,6 @@ in { command = "sticky enable"; criteria = { floating = ""; }; } - { - criteria = { title = "Firefox — Sharing Indicator"; }; - command = "floating enable"; - } - { - criteria = { title = "Firefox — Sharing Indicator"; }; - command = "no_focus"; - } ]; }; startup = (map (command: { inherit command; }) config.startupApplications)