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

Is it still able to display a picture on an empty sway workspace? #117

Closed
pralite opened this issue Feb 8, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@pralite
Copy link

pralite commented Feb 8, 2024

Hi,
With a pre 2.1 version of swayimg, using sway on an archlinux derived distro,
I was able to call:
waymsg workspace number $1 && swayimg --geometry 1720,60,210,150 --scale=fit --background=none /home/user/wmxchannelimgs/chan"$1".png &
in a script and that would display the appropriate picture (workspace number), even if the workspace didn't have any windows (yet).

For 2.1, (on sway 1:1.8.1-) I'v now come up with:
swaymsg workspace number $1 && swayimg --config=general.antialiasing=no --config=general.position=1720,60 --config=general.size=210,150 --config=general.scale=real --config=general.transparency=none --config=in fo.mode=off /home/user/wmxchannelimgs/chan"$1".png &,
but that only works for workspaces that already have some window.

Is it still possible to display a picture on an empty workspace?

Additional info:
Quickly calling the script and rapidly switching workspaces leads to the side effect that the picture for empty workspace 1,
is displayed as a non-transparent one with it's own window in the next workspace that is being switched to (2).
Repeatedly doing this leads to the swayimg command not adhering to the commandline flags at all anymore and a 'Invalid IPC response' errormessage for every new swayimg execution.

However, the last misbehaviour could in theory be due to other code in the script handling the fading out and killing of the swayimg process or hiding of the kill-notification.

@artemsen artemsen self-assigned this Feb 8, 2024
@artemsen artemsen added the bug Something isn't working label Feb 8, 2024
@artemsen
Copy link
Owner

artemsen commented Feb 9, 2024

Fixed.
Thank you for detailed bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants