Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Brightness for Lego Universe

It's very simple. For the right-side monitor where Lego Universe runs, adjust gamma. To turn it on, right brightness-for-lego-universe on. To set gamma back to normal, run it without the parameter.

#!/bin/sh
# Startdate: 2024-12-01-1 15:22
# Purpose: set gamma on my right monitor if playing DLU
unset _gamma
_gamma="1:1:1" # normal contrast
test "${1}" = "on" && GAME=1
test -n "${GAME}" && _gamma="1.3:1.3:1.3"
xrandr --output HDMI-1 --gamma "${_gamma}"

Comments