Structure the installers explicitly with clearly defined segments

This commit is contained in:
David Heinemeier Hansson
2025-07-25 16:48:53 -04:00
parent 25acc313b1
commit b5f60f78a8
29 changed files with 67 additions and 44 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Install asdcontrol for controlling brightness on Apple Displays
if [ -z "$OMARCHY_BARE" ] && ! command -v asdcontrol &>/dev/null; then
git clone https://github.com/nikosdion/asdcontrol.git /tmp/asdcontrol
cd /tmp/asdcontrol
make
sudo make install
cd -
rm -rf /tmp/asdcontrol
# Setup sudo-less controls
echo "$USER ALL=(ALL) NOPASSWD: /usr/local/bin/asdcontrol" | sudo tee /etc/sudoers.d/asdcontrol
sudo chmod 440 /etc/sudoers.d/asdcontrol
fi