mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Add asdcontrol for Apple Display brightness
This commit is contained in:
11
install/adscontrol.sh
Normal file
11
install/adscontrol.sh
Normal file
@ -0,0 +1,11 @@
|
||||
# Install asdcontrol for controlling brightness on Apple Displays
|
||||
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
|
Reference in New Issue
Block a user