Skip to content

Commit 0aa4426

Browse files
committed
screen tearing in cs2
1 parent e9f9ebd commit 0aa4426

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

desktop/home.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@
4343
output = "DP-3";
4444
}
4545
];
46+
window.commands = [
47+
{
48+
command = "tearing enable";
49+
criteria = { class = "cs2"; };
50+
}
51+
{
52+
command = "border none";
53+
criteria = { class = "cs2"; };
54+
}
55+
{
56+
command = "max_render_time off";
57+
criteria = { class = "cs2"; };
58+
}
59+
];
4660
};
4761

4862
services = {

home/home.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
NIXOS_OZONE_WL = "1";
2828
# OBS_VKCAPTURE = "1";
2929
WLR_RENDERER = "vulkan";
30+
WLR_DRM_NO_ATOMIC = "1"; # screen tearing support
3031
# MANGOHUD_CONFIGFILE = "/home/codebam/.config/MangoHud/MangoHud.conf";
3132
# PROTON_ENABLE_WAYLAND = "1";
3233
# PROTON_ENABLE_HDR = "1";

home/programs.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
set -gx NIXOS_OZONE_WL 1
170170
# set -gx OBS_VKCAPTURE 1
171171
set -gx WLR_RENDERER vulkan
172+
set -gx WLR_DRM_NO_ATOMIC 1
172173
# set -gx MANGOHUD_CONFIGFILE /home/codebam/.config/MangoHud/MangoHud.conf
173174
# set -gx PROTON_ENABLE_WAYLAND 1
174175
# set -gx PROTON_ENABLE_HDR 1

0 commit comments

Comments
 (0)