Closed kRHYME7 closed 2 weeks ago
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
not give errors if file do not exist
# hyprlang noerror true
bind = MOD, KEY, something, amogus
someoption = blah
# hyprlang noerror false
Thanks, I honestly forgot about this.
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 )
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.