9

With i3, is it possible to have all new windows open in fullscreen by default? As far as I have been able to find, this is only possible for specified programmes.

Toothrot
  • 3,435
  • What I think is you should try something like [class="<>"] fullscreen enable. The only thing I have no idea how to specify in <> something that would match any window. The wildcard is the thing to try I guess. – ddnomad Jul 26 '16 at 12:51

1 Answers1

16

You can use the following configuration setting:

for_window [class=".*"] fullscreen enable

The for_window [CRITERIA] COMMAND setting runs COMMAND for each new window matching CRITERIA. i3 uses PCRE (Perl-compatible regular expressions) for pattern matching, so the pattern .* matches any number of arbitrary characters. Meaning it matches any possible class name, even empty ones.

Adaephon
  • 4,456
  • The criterion all matches all windows (for_window [all] fullscreen enable, see User's Guide, part 6 - List of Commands). Major drawback of enabling fullscreen for all windows is the fact that small dialog windows become stretched to full screen too. Maybe playing with for_window ... floating enable will help. – Andrei Korshikov Mar 31 '24 at 06:36