Skip to content

BrightnessAPI: return current brightness when no arguments are provided#851

Open
HarryL0L wants to merge 1 commit intotermux:masterfrom
HarryL0L:brightness-get-value
Open

BrightnessAPI: return current brightness when no arguments are provided#851
HarryL0L wants to merge 1 commit intotermux:masterfrom
HarryL0L:brightness-get-value

Conversation

@HarryL0L
Copy link
Copy Markdown

Return the current screen brightness when no arguments are provided.

Previously, calling termux-brightness without arguments showed a usage
message. This now returns the current brightness value instead:

{"brightness":149}

Existing behavior for setting brightness is unchanged. No new permissions
are introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant