adding resize rules

This commit is contained in:
Levi Woodard
2026-07-01 19:28:58 -05:00
parent 55a8ea4bee
commit ca74ba0070

View File

@@ -67,6 +67,13 @@ func (p *Player) args() []string {
"--cursor-autohide=always", "--cursor-autohide=always",
"--no-border", "--no-border",
"--fullscreen=no", // we tile via the compositor, not fullscreen "--fullscreen=no", // we tile via the compositor, not fullscreen
// Never let mpv resize its own window to the camera's native
// resolution — the compositor owns tile geometry. Without this a
// high-res camera grows its window and overlaps its neighbours.
"--auto-window-resize=no",
// Scale video to fill the tile (letterboxed to preserve aspect); the
// window size is fixed by the compositor, not by the video.
"--keepaspect=yes",
"--title=" + p.Title(), "--title=" + p.Title(),
"--input-ipc-server=" + p.ipcPath, "--input-ipc-server=" + p.ipcPath,
"--hwdec=" + p.cfg.HWDec, "--hwdec=" + p.cfg.HWDec,