mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 20:44:21 +01:00
Control Apple Brightness via F1/F2 instead of aliases
More natural
This commit is contained in:
@@ -36,14 +36,3 @@ webm2mp4() {
|
||||
output_file="${input_file%.webm}.mp4"
|
||||
ffmpeg -i "$input_file" -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 192k "$output_file"
|
||||
}
|
||||
|
||||
# Allow brightness controls if ASDControl is installed
|
||||
if [ -f "/usr/local/bin/asdcontrol" ]; then
|
||||
export APPLE_DISPLAY_DEV=$(asdcontrol --detect /dev/usb/hiddev* 2>/dev/null | sed -n 's|^\(/dev/usb/hiddev[0-9]*\):.*|\1|p')
|
||||
|
||||
alias brup="asdcontrol $APPLE_DISPLAY_DEV -- +10000"
|
||||
alias brdown="asdcontrol $APPLE_DISPLAY_DEV -- -10000"
|
||||
|
||||
alias brmax="asdcontrol $APPLE_DISPLAY_DEV -- +60000"
|
||||
alias brmin="asdcontrol $APPLE_DISPLAY_DEV -- -60000"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user