Skip to content

Instantly share code, notes, and snippets.

@lakuapik
Created July 12, 2018 23:02
Show Gist options
  • Save lakuapik/921871034ba28250a450d71adebdc63a to your computer and use it in GitHub Desktop.
Save lakuapik/921871034ba28250a450d71adebdc63a to your computer and use it in GitHub Desktop.
Ubuntu GNU/Linux screen dimmer command line bash script
#!/bin/bash
# copy this file to /usr/local/bin/
# usage: dim 0.5 -> 0.5 is the brightness
screen=($(xrandr -q | grep -w 'connected'))
xrandr --output $screen --brightness $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment