Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

badge.graphics

Declared in BadgeOS/modules/sg2k/graphics.nix, BadgeOS/modules/sg2k/games.nix.

badge.graphics.enable

Whether to enable Sway on DRM/KMS, software-rendered.

Type: boolean

Default:

false

Example:

true

Declared by:

badge.graphics.autostart

Commands the sway config starts (exec), in order.

Type: list of string

Default:

[ ]

Example:

[
  "/run/current-system/sw/bin/badge-demo"
]

Declared by:

badge.graphics.autostartDemo

Launch badge-demo from the sway config (and install it); ESC in the prod quits back to sway.

Type: boolean

Default:

false

Declared by:

badge.graphics.autostartQuake

Launch ioquake3 from the sway config.

Type: boolean

Default:

false

Declared by:

badge.graphics.demo

Install the “Nix Fixes This” demoscene prod (badge-demo).

Type: boolean

Default:

false

Declared by:

badge.graphics.outputMode

The mode sway sets on the HDMI output; both drive the same 1280x720p60 line. “1280x720”: the DISP video layer scans the compositor’s RGB888 buffer 1:1. “640x360”: the DISP GOP doubles an XRGB8888 buffer, for a quarter of the pixels to render and a third of the scanout bandwidth.

Type: one of “1280x720”, “640x360”

Default:

"1280x720"

Declared by:

badge.graphics.quake

Install ioquake3 and the Quake III demo data.

Type: boolean

Default:

true

Declared by:

badge.graphics.quakeHeight

ioquake3 render height (r_customheight). See quakeWidth.

Type: signed integer

Default:

360

Declared by:

badge.graphics.quakeHunkMiB

ioquake3’s up-front hunk allocation (com_hunkMegs), in MiB. Upstream defaults to 128; this board has 351 MB of RAM in total.

Type: signed integer

Default:

64

Declared by:

badge.graphics.quakeWidth

ioquake3 render width (r_customwidth). At 640x360 SDL switches the output to its GOP-doubled 640x360 mode, three times as fast as 1280x720.

Type: signed integer

Default:

640

Declared by: