2024-11-04 11:40:49 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ "$1" =~ ^[0-9]+$ ]]; then
|
|
|
|
echo "$1" > /sys/class/backlight/amdgpu_bl1/brightness
|
2024-11-05 14:09:13 +01:00
|
|
|
else
|
|
|
|
swayosd-client --brightness "$1"
|
2024-11-04 11:40:49 +01:00
|
|
|
fi
|
|
|
|
|
2024-11-05 14:09:13 +01:00
|
|
|
eww update brightness="$(cat /sys/class/backlight/amdgpu_bl1/brightness)"
|