mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00
14 lines
437 B
Bash
14 lines
437 B
Bash
# Install asdcontrol for controlling brightness on Apple Displays
|
|
if ! 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
|