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

[Feat Req] Optional sourced file #57

Closed
kRHYME7 opened this issue Oct 18, 2024 · 3 comments
Closed

[Feat Req] Optional sourced file #57

kRHYME7 opened this issue Oct 18, 2024 · 3 comments

Comments

@kRHYME7
Copy link

kRHYME7 commented Oct 18, 2024

#52 Conditionals is very flexible, but might be too much. So I will start from this part.

Is it possible to have a flag for source to tell hyprlang to skip or not give errors if file do not exist. Explicit sourcing is robust, but having this option opens a new window of customization.

Examples are ( q for quiet )

sourceq = /path/that/exist
sourceq = /path/that/may/not/exist
sourceq = /maybe/a/path/where/users/can/add/overrides

This can also be used to have a fallback configuration when a distro or a DE wants to have defaults without the USER touching this file.

@vaxerski
Copy link
Member

hyprlang does not provide source. Source is implemented by users of the library as a keyword. See https://github.com/hyprwm/Hyprland/blob/0e630e9e74ad34683194a07cfe6afe55a2c0685f/src/config/ConfigManager.cpp#L289-L299

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@vaxerski
Copy link
Member

vaxerski commented Oct 18, 2024

not give errors if file do not exist

# hyprlang noerror true

bind = MOD, KEY, something, amogus
someoption = blah

# hyprlang noerror false

https://wiki.hyprland.org/Configuring/

@kRHYME7
Copy link
Author

kRHYME7 commented Oct 18, 2024

Thanks, I honestly forgot about this.

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

No branches or pull requests

2 participants