Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bin/omarchy-brightness-display
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ for candidate in amdgpu_bl* intel_backlight acpi_video*; do
fi
done

# Current brightness percentage
current=$(brightnessctl -d "$device" -m | cut -d',' -f4 | tr -d '%')

# Apply non-uniform step size: 1% steps if at or below 5%
if [[ "$step" == "+5%" && "$current" -lt 5 ]]; then
step="+1%"
elif [[ "$step" == "5%-" && "$current" -le 5 ]]; then
step="1%-"
fi

# Set the actual brightness of the display device.
brightnessctl -d "$device" set "$step" >/dev/null

Expand Down