This file contains 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
# Set brightness of external display | |
# Reference material for https://youtu.be/_Vy7m-LhGEc episode | |
b() { | |
if [ -z "$1" ] || [ "$1" = "--help" ]; then | |
printf "%s\n" "Usage: b integer" | |
return 0 | |
fi | |
m1ddc set luminance $1 > /dev/null | |
} |