Add light.sh

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-07-10 13:29:45 +01:00
parent d1c58da931
commit 1e8aa09bb6
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 27 additions and 0 deletions

View file

@ -24,6 +24,7 @@ Markdown docs and shell scripts for automating installation of things and docume
* [`fzf.sh`](fzf.sh) for installing the `fzf` command line fuzzy finder (https://github.com/junegunn/fzf)
* [`gpaste.md`](gpaste.md) for installing the GPaste clipboard manager
* [`i3-move-monitor.md`](i3-move-monitor.md) for moving virtual monitor positions when using i3
* [`light.sh`](light.sh) for installing the `light` tool (https://github.com/haikarainen/light)
* [`ntfy-cli.sh`](ntfy-cli.sh) for installing the [Ntfy push notification server and CLI](https://ntfy.sh)
* [`picom.sh`](picom.sh) for compiling and installing the Picom compositor
* [`rclone.sh`](rclone.sh)

26
light.sh Executable file
View file

@ -0,0 +1,26 @@
#!/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)"