Open alba4k opened 2 months ago
I know that this might be behind the scope of hyprlang is supposed to be, but:
Would it be possible to get some sort of branching in hyprlang itself? As an example
# hyprlang if hyprctl monitors | grep DP-5 monitor = eDP-1, disabled # hyprlang else monitor = eDP-1, 1920x1200@60, 0x0, 1 # hyprlang endif
where the condition is simply sh -c "whatever the command is" returning 0.
sh -c "whatever the command is"
Of course, this could be partially handled by scripts. Using scripts, however, is never as effective. I'm not sure how the delay could be handled.
idk if this is a good idea
Could certainly be nice
I know that this might be behind the scope of hyprlang is supposed to be, but:
Would it be possible to get some sort of branching in hyprlang itself? As an example
where the condition is simply
sh -c "whatever the command is"
returning 0.Of course, this could be partially handled by scripts. Using scripts, however, is never as effective. I'm not sure how the delay could be handled.