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

Display image inside of indicator #4

Closed
wants to merge 23 commits into from

Conversation

ErikReider
Copy link

@ErikReider ErikReider commented Jul 18, 2022

From mortie#89

Fixes #68
Requires #20

Description:

Displays an image inside of the indicator behind the inside of the indicator (the clock, text, and its background)

Example:
swaylock --indicator-image /PATH/TO/SOME/IMAGE

or:

indicator-image=/PATH/TO/SOME/IMAGE

fade-in=0.2
image=~/.cache/wallpaper
...

image

emersion and others added 14 commits July 30, 2021 18:01
mako does something similar.
Initializing to 1 is incorrect when the surface scale is > 1.
We incorrectly used the buffer size instead of the surface size.
Let's not bother and just damage the maximum region.
Signed-off-by: Elyes HAOUAS <[email protected]>
An odd value of fe.height lead to the indicator disappearing. This was
due to the buffer size no longer being a multiple of the buffer scale.
This commit fixes the issue by checking both height and width to be a
multiple of scale.

This is done early to avoid excessive re-calls of create_buffer if the
buffer_height != new_height in render.c line 314 (now 318).
@jirutka
Copy link
Owner

jirutka commented Jul 21, 2022

Please resolve the file conflict.

@ErikReider
Copy link
Author

Please resolve the file conflict.

Yeah. Haven't really had that much time. Will during the weekend :)

@ErikReider
Copy link
Author

Can't really test the changes due to #3

@ErikReider ErikReider marked this pull request as draft January 13, 2023 12:30
@ErikReider ErikReider marked this pull request as ready for review January 13, 2023 13:07
@ErikReider
Copy link
Author

@jirutka It's ready now :)

MichaelPachec0 added a commit to MichaelPachec0/nix-config that referenced this pull request Apr 29, 2023
render.c Outdated Show resolved Hide resolved
render.c Outdated Show resolved Hide resolved
render.c Outdated Show resolved Hide resolved
@jirutka
Copy link
Owner

jirutka commented Dec 2, 2023

I’ve refactored it (#51) and merged as ea6688d. Thanks!

@jirutka jirutka closed this Dec 2, 2023
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

Successfully merging this pull request may close these issues.

--effect-compose not scaling correctly
10 participants