Skip to content

Instantly share code, notes, and snippets.

View sunknudsen's full-sized avatar

Sun Knudsen sunknudsen

View GitHub Profile
@sunknudsen
sunknudsen / .zshrc
Created May 23, 2024 13:02
Your eyeballs will thank you for this
# 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
}