From 9cb606f433399ecafce6674786f9e7d2e2cdada8 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 22 Nov 2021 18:42:01 +0300 Subject: [PATCH] Fix the firefox indicator even more --- profiles/applications/firefox.nix | 22 +++++++++++++++++++++- profiles/workspace/sway/default.nix | 8 -------- 2 files changed, 21 insertions(+), 9 deletions(-) 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)