Skip to content

Instantly share code, notes, and snippets.

@L04DB4L4NC3R
Last active February 23, 2020 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save L04DB4L4NC3R/1927ae727ec565d2885e845a5a855e71 to your computer and use it in GitHub Desktop.
Save L04DB4L4NC3R/1927ae727ec565d2885e845a5a855e71 to your computer and use it in GitHub Desktop.
Sys scripts
nmcli dev wifi
nmcli dev wifi connect $ESSID password $WIFI_PASSWORD
current=`cat /sys/class/backlight/intel_backlight/brightness`
if [[ $1 == "--inc" ]]; then
let 'current+=10000'
elif [[ $1 == "--dec" ]]; then
let 'current-=10000'
if [[ $current -le 5000 ]]; then
current=5000
fi
else
echo "usage: --inc for 10K inc and --dec for 10K dec in brightness"
fi
echo $current > /sys/class/backlight/intel_backlight/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment