Rule to allow tearing for all games launched via Steam in Sway and Hyprland
So both Sway and Hyprland now support Waylands' tearing protocol. I was wondering whether it is possible to create window rules for these WMs that allow tearing in all games launched via Steam. Something like:
For Sway
for_window [class="steam_app_*"] allow_tearing yes
and for Hyprland
windowrulev2 = immediate, class:^(steam_app_*)$
Does anybody know whether something like this would work? You know, instead of having to create an entry for every single game.