Grx.set_driver
function set_driver(driver_spec: String): Boolean { // Gjs wrapper for grx_set_driver() }
The driver spec is of the format "\[<name>\[::<flag>\]\] \[gw <width>\] \[gh <height>\] \[gc <colors>\] \[dp <dpi>\]".
- "<name>" is the name of a video driver plugin. - "<flag>" is "fs" for fullscreen or "ww" for windowed (not supported by all drivers) - "<width>" is the default width - "<height>" is the default height - "<colors>" is the default color depth. "K" and "M" suffixes are recognized. - "<dpi>" the display resolution in dots per inch.
If driver_spec is null, then it will first check the GRX_DRIVER environment variable for a driver spec. If the environment variable is not present, then it will uses the driver with the highest number of modes.
- driver_spec
The driver spec.
- Returns
true on success, otherwise false.