Fix the firefox indicator even more

This commit is contained in:
Alexander Bantyev 2021-11-22 18:42:01 +03:00
parent e6ab068ab3
commit 9cb606f433
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 21 additions and 9 deletions

View File

@ -21,6 +21,27 @@ in {
enable = true; enable = true;
browsers = [ "firefox" ]; 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 = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox-wayland; package = pkgs.firefox-wayland;
@ -84,7 +105,6 @@ in {
"toolkit.telemetry.unified" = false; "toolkit.telemetry.unified" = false;
"toolkit.telemetry.updatePing.enabled" = false; "toolkit.telemetry.updatePing.enabled" = false;
"experiments.activeExperiment" = false; "experiments.activeExperiment" = false;
"experiments.enabled" = false; "experiments.enabled" = false;
"experiments.supported" = false; "experiments.supported" = false;

View File

@ -89,14 +89,6 @@ in {
command = "sticky enable"; command = "sticky enable";
criteria = { floating = ""; }; 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) startup = (map (command: { inherit command; }) config.startupApplications)