artemsen / swayimg

Image viewer for Wayland
MIT License
379 stars 31 forks source link

Positioning not worked #109

Closed czlaci closed 9 months ago

czlaci commented 10 months ago

Position parameter and config options is not worked. The displayed image always appears in the centre of the screen. Swayimg version: 2.0 Sway version: 1.8.1

artemsen commented 10 months ago

Hi, Could you show the command you use? Do you have custom swayimg config file? I tried swayimg -p 123,456 photo.jpg and it works for me.

czlaci commented 10 months ago

Hi! No custom swayimg config file. Your command is similar swayimg -p 100,100 nevn.png Nevertheless, the image appears in the centre. In the Sway settings, floating enable is part of the swayimg, but it doesn't work without it.

Artem Senichev @.***> ezt írta (időpont: 2024. jan. 5., P, 8:06):

Hi, Could you show the command you use? Do you have custom swayimg config file? I tried swayimg -p 123,456 photo.jpg and it works for me.

— Reply to this email directly, view it on GitHub https://github.com/artemsen/swayimg/issues/109#issuecomment-1878225232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASK3GNDXPJJDFUZB22V6W3YM6Q55AVCNFSM6AAAAABBNMRJNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGIZDKMRTGI . You are receiving this because you authored the thread.Message ID: @.***>

artemsen commented 10 months ago

In the Sway settings, floating enable is part of the swayimg

Try to remove any rules for swayimg from your sway config. These rules will be added by the swayimg itself.

czlaci commented 10 months ago

My swayimg was updated a few days ago. It worked fine in the previous version. I changed the config file by copying the new version and rewriting a few things in it. It didn't work. I deleted the lines in my own config and the sway settings that apply to them, but it still doesn't work. I tried changing the scale and size parameters on it, nothing. The sway gives the option to move the program that opens, tried that, nothing. Maybe the problem is that the old version had a swaywm intergation config parameter, which was not included in the new one.

Artem Senichev @.***> ezt írta (időpont: 2024. jan. 5., P 12:34):

In the Sway settings, floating enable is part of the swayimg

Try to remove any rules for swayimg from your sway config. These rules will be added by the swayimg itself.

— Reply to this email directly, view it on GitHub https://github.com/artemsen/swayimg/issues/109#issuecomment-1878527786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASK3GKMLOZDC6HTBWOQZTTYM7QKXAVCNFSM6AAAAABBNMRJNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGUZDONZYGY . You are receiving this because you authored the thread.Message ID: @.***>

artemsen commented 10 months ago

Please, show your config file for swayimg.

czlaci commented 10 months ago

Ok.

Artem Senichev @.***> ezt írta (időpont: 2024. jan. 5., P, 15:27):

Please, show your config file for swayimg.

— Reply to this email directly, view it on GitHub https://github.com/artemsen/swayimg/issues/109#issuecomment-1878766180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASK3GOBYRM4EASLZGQKLX3YNAEUNAVCNFSM6AAAAABBNMRJNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYG43DMMJYGA . You are receiving this because you authored the thread.Message ID: @.***>

czlaci commented 10 months ago

I noticed something else. The -a parameter does not set the class of the window. After displaying it, I query it with swaymsg -t get_tree and it doesn't change, it stays swayimg.

artemsen commented 10 months ago

Again, could you show your config for swayimg? Do you have any swayimg related options in your Sway configuration?

swayimg is the default application id that is used if there is a problem getting current time.

artemsen commented 9 months ago

Sorry, I can't help you without knowing your configuration. Try to update your version to 2.1. If the bug is reproduced, please attach your configuration files and describe what command line arguments you use when starting the swayimg. I can't fix the bug if I can't reproduce it =)

czlaci commented 9 months ago

Ok, I will do that.

Artem Senichev @.***> ezt írta (időpont: 2024. febr. 2., P 13:20):

Sorry, I can't help you without knowing your configuration. Try to update your version to 2.1. If the bug is reproduced, please attach your configuration files and describe what command line arguments you use when starting the swayimg. I can't fix the bug if I can't reproduce it =)

— Reply to this email directly, view it on GitHub https://github.com/artemsen/swayimg/issues/109#issuecomment-1923697215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASK3GKLLAT2RXFB2Y4CPGDYRTKZRAVCNFSM6AAAAABBNMRJNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRTGY4TOMRRGU . You are receiving this because you authored the thread.Message ID: @.***>