Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions default/hypr/looknfeel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ hl.config({
layout = "dwindle",
},

render = {
-- Attempt direct scanout automatically for fullscreen game content.
direct_scanout = 2,
},
decoration = {
rounding = 0,

Expand Down
13 changes: 13 additions & 0 deletions test/shell.d/hypr-direct-scanout-test.sh
Original file line number Diff line number Diff line change
@@ -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"