-
-
Save lakuapik/921871034ba28250a450d71adebdc63a to your computer and use it in GitHub Desktop.
Ubuntu GNU/Linux screen dimmer command line bash script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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