diff --git a/default/hypr/looknfeel.lua b/default/hypr/looknfeel.lua index f912169dab72..f75c56d7a2fc 100644 --- a/default/hypr/looknfeel.lua +++ b/default/hypr/looknfeel.lua @@ -19,6 +19,10 @@ hl.config({ layout = "dwindle", }, + render = { + -- Attempt direct scanout automatically for fullscreen game content. + direct_scanout = 2, + }, decoration = { rounding = 0, diff --git a/test/shell.d/hypr-direct-scanout-test.sh b/test/shell.d/hypr-direct-scanout-test.sh new file mode 100755 index 000000000000..76689abf42cf --- /dev/null +++ b/test/shell.d/hypr-direct-scanout-test.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" + +looknfeel="$ROOT/default/hypr/looknfeel.lua" + +grep -Eq 'direct_scanout[[:space:]]*=[[:space:]]*2' "$looknfeel" || fail "direct_scanout = 2 is not configured" +pass "direct scanout is automatic for fullscreen game content" + +grep -Eq 'allow_tearing[[:space:]]*=[[:space:]]*false' "$looknfeel" || fail "async tearing was enabled with direct scanout" +pass "direct scanout does not enable experimental tearing"