setup-files/light.sh
AKP 1e8aa09bb6
Add light.sh
Signed-off-by: AKP <tom@tdpain.net>
2022-07-10 13:30:24 +01:00

26 lines
458 B
Bash
Executable file

#!/usr/bin/env bash
# installs https://github.com/haikarainen/light and attempts to configure the correct permissions
set -ex
LIGHT_VERSION="v1.2.2"
UDEV_DIRECTORY="/usr/lib/udev/rules.d"
TEMP_DIR="$(mktemp -d)"
(
cd "$TEMP_DIR"
git clone https://github.com/haikarainen/light.git .
git checkout $LIGHT_VERSION
./autogen.sh
./configure --with-udev=$UDEV_DIRECTORY
make
sudo make install
)
rm -rf $TEMP_DIR
sudo usermod -a -G video "$(whoami)"