- Relocate themes to assets/themes/ and update all references. - Implement custom SDDM theme and Plymouth theme enhancements. - Add themed templates for Alacritty, Hyprland, Waybar, and other apps. - Introduce Makima key remapper module and configuration. - Add Voxtype and Walker configurations. - Implement systemd power management and timeout optimizations. - Add Nautilus-python extensions for LocalSend. - Update branding assets and ASCII art integration.
13 lines
508 B
Bash
Executable File
13 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Adjust the brightness on Apple Studio Displays and Apple XDR Displays using asdcontrol.
|
|
|
|
if (( $# == 0 )); then
|
|
echo "Adjust Apple Display Brightness by passing +5000 or -5000 (or any range from 0-60000)"
|
|
else
|
|
device="$(sudo asdcontrol --detect /dev/usb/hiddev* | grep ^/dev/usb/hiddev | cut -d: -f1)"
|
|
sudo asdcontrol "$device" -- "$1" >/dev/null
|
|
value="$(sudo asdcontrol "$device" | awk -F= '/BRIGHTNESS=/{print $2+0}')"
|
|
nnomarchy-swayosd-brightness "$(( value * 100 / 60000 ))"
|
|
fi
|