hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Immediate reload like on label for image

Open Aidavdw opened this issue 1 year ago • 0 comments

Description

Setting text = cmd[update:(...)] for label means the command is queried when hyprlock is first engaged. Image objects work differently, where a (default) path is given with path, and the image can be reloaded with the command given by reload_cmd. Setting dynamic images this way means that the default image is always loaded first, and then overridden. This means that the command must either poll, or a SIGUSR2 signal must be sent by a background process immediately upon starting hyprlock (with some delay, requiring a fidgety sleep (...) to be able to set the image at the moment of starting hyperlock.

A system similar to the label setup is desirable for a image, where it can directly query a command/path, so that these extra steps don't have to be taken.

Aidavdw avatar Aug 22 '24 11:08 Aidavdw