Skip to main content
100%

Gist da4df60b12f754d8da27f117f5bd7b7f

✓ Published0🌍 Public
MMistyBlunch
Last edited Apr 1, 2019
Created on Apr 1, 2019

This example shows a shell script that retrieves the current display name via `xrandr` and then sets the screen brightness using the `xrandr --output` command with a specified brightness level. The code parses the monitor identifier by filtering the output of `xrandr | grep " connected"` and cutting the first field. It relies on the `xrandr` command-line tool, which is part of the X11 display management utilities, and references a tutorial for adjusting brightness from the terminal. No external libraries or data sources are involved.

AI-generated description

Similar vizzes