#!/bin/sh
if [[ "$(uname -s)" == "Linux" ]]; then
echo $1 | sudo tee /sys/class/backlight/intel_backlight/brightness
else
echo "only works on linux"
fi