eww: better lyrics

This commit is contained in:
2025-06-26 03:37:36 +02:00
parent 5517c99370
commit e2e150c95c
18 changed files with 134 additions and 56 deletions

View File

@@ -51,7 +51,11 @@ get_vol() {
## Get Brightness
get_brightness() {
brightnessctl i --machine-readable -d intel_backlight | tr ',' ' ' | awk '{print $4}' | tr -d '%'
if [ -z "$DISPLAY_DEVICE" ]; then
brightnessctl i --machine-readable | tr ',' ' ' | awk '{print $4}' | tr -d '%'
else
brightnessctl i -d $DISPLAY_DEVICE --machine-readable | tr ',' ' ' | awk '{print $4}' | tr -d '%'
fi
}
## Execute accordingly