Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to list all available variables with hyprctl including type and current value #5304

Closed
mylinuxforwork opened this issue Mar 28, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@mylinuxforwork
Copy link

mylinuxforwork commented Mar 28, 2024

Description

Hi.

Is there a way to list all available variables with a hyprctl command incl. the type of the variable: int, float, custom, etc. and current value.

Idea:

hyprctl listvariables

Means all variables that can be set with

hyprctl keyword variable value

Thank you.

@mylinuxforwork mylinuxforwork added the enhancement New feature or request label Mar 28, 2024
@mylinuxforwork mylinuxforwork changed the title A way to list all available variables with hyprctl including type A way to list all available variables with hyprctl including type and current value Mar 28, 2024
@vaxerski
Copy link
Member

all? Nope. You can only do one-by-one.

@mylinuxforwork
Copy link
Author

OK. But that means the only source to get an overview of all variables & related types is the Hyprland Wiki, right?
Fine with it. Just wanted to make sure that there is not another source available.

@vaxerski
Copy link
Member

that's correct

@fdev31
Copy link

fdev31 commented Apr 8, 2024

This feature would be amazing, making the app better self-documented.
For instance I can't figure how to getoption animations:windows:windowsOut, with some "introspection" implemented it would be a breeze to figure what is implemented or not...

@mylinuxforwork
Copy link
Author

@vaxerski Is there an update on this feature request or still the same status? Does exists a list of variables in your source code somewhere that could be parsed?

@vaxerski
Copy link
Member

hyprctl descriptions exists, though it only prints the default value, not current.

@mylinuxforwork
Copy link
Author

hyprctl descriptions exists, though it only prints the default value, not current.

This is perfect. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants