Skip to content

Instantly share code, notes, and snippets.

@meseznik
meseznik / brightness_control.sh
Last active September 25, 2021 17:13
bash script to control brightness/contrast
#!/bin/bash
# brightness_control --contrast --up 10
# brightness_control --brightness --down 5
# for the script to work without sudo, do this:
# https://frdmtoplay.com/using-ddccontrol-as-a-non-root-user/
# https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux
if [ "$1" = "--brightness" ]
then