hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.09k stars 754 forks source link

[Enhancement] Hold off `exec-once` until a promgram is finished #5832

Closed fjueic closed 2 months ago

fjueic commented 2 months ago

Description

It might be the XY problem i will explain what im trying to do. i'm auto logging in my arch linux using greetd and session is locked immediately with hyprlock exec-once = hyprlock || hyprctl dispatch exit and all the other exec-once and commands are ran with it is there a way to hold off execution of other commands until i unlock

a way to set the order of priority for exec-once sounds nice like don't run commands until all others are finished

i know it possible with chaining && or bash script but directly in hyprland conf would be nice

fjueic commented 2 months ago

a workaround i have in mind is having two config file one with exec-once in it which can be import as usual and one with exec which i can import later

and i can trigger update with exec file once and remove it so it cause no further runs

i will try it implement this workaround but native would be good thanks

fjueic commented 2 months ago

a workaround i have in mind is having two config file one with exec-once in it which can be import as usual and one with exec which i can import later

and i can trigger update with exec file once and remove it so it cause no further runs

i will try it implement this workaround but native would be good thanks

working as intended

vaxerski commented 2 months ago

I don't think this makes sense as there are a dozen ways to do it already like you mentioned yourself, and it's quite a niche case.

fjueic commented 2 months ago

https://github.com/hyprwm/Hyprland/assets/89282645/afc2cd55-1ed0-4d45-8d00-fc385eefd553

@vaxerski sry for opening this again

is there a way to deal with the flash of hyprland session before hyprlock runs?

vaxerski commented 2 months ago

that's probably the time where the image is being loaded. If you want to minimize it, choose a solid background, or make the image smaller, so that it loads faster.