Firefox: make the microphone popup less annoying

This commit is contained in:
Alexander Bantyev 2021-11-12 15:23:49 +03:00
parent 7e799e7836
commit 68ac815a23
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -38,11 +38,8 @@ in {
{ app_id = "firefox"; } { app_id = "firefox"; }
{ class = "Firefox"; } { class = "Firefox"; }
]; ];
"" = [ "" =
{ app_id = "geary"; } [ { app_id = "geary"; } { title = "nheko"; } { title = "Slack.*"; } ];
{ title = "nheko"; }
{ title = "Slack.*"; }
];
}; };
fonts = { fonts = {
names = [ config.themes.fonts.main.family ]; names = [ config.themes.fonts.main.family ];
@ -92,15 +89,26 @@ 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)
{ command = toString (pkgs.writeShellScript "slack" '' ++ [
{
command = toString (pkgs.writeShellScript "slack" ''
firefox https://tweag.slack.com & firefox https://tweag.slack.com &
sleep 10 sleep 10
swaymsg '[title=Slack.*] move to workspace ' swaymsg '[title=Slack.*] move to workspace '
swaymsg '[title=Slack.*] fullscreen disable' swaymsg '[title=Slack.*] fullscreen disable'
''); } '');
}
{ {
command = command =
"swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'"; "swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'";
@ -113,7 +121,8 @@ in {
++ [ [ "c" "" ] [ "t" "" ] [ "m" "" ] ]; ++ [ [ "c" "" ] [ "t" "" ] [ "m" "" ] ];
in ({ in ({
"${modifier}+q" = "kill"; "${modifier}+q" = "kill";
"${modifier}+Shift+q" = "move container to workspace temp; [workspace=__focused__] kill; workspace temp; move container to workspace temp; workspace temp"; "${modifier}+Shift+q" =
"move container to workspace temp; [workspace=__focused__] kill; workspace temp; move container to workspace temp; workspace temp";
"${modifier}+Return" = "exec ${apps.term.cmd}"; "${modifier}+Return" = "exec ${apps.term.cmd}";
"${modifier}+e" = "exec ${apps.editor.cmd}"; "${modifier}+e" = "exec ${apps.editor.cmd}";
"${modifier}+o" = "layout toggle all"; "${modifier}+o" = "layout toggle all";