artemsen / swayimg

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

Floating window not working #25

Closed hajosattila closed 2 years ago

hajosattila commented 2 years ago

For some reason, it does not open the images as a floating window.

swayimg

scrn-2022-03-03-11-29-04

imv

scrn-2022-03-03-11-29-47

Sway Version: 1.7.0 (Arch)

Sorry for my bad English!

artemsen commented 2 years ago

The floating window has the same size as your active terminal window (it should be at last). It looks like the image exactly fills the terminal window in the first screenshot. This is true?

hajosattila commented 2 years ago

The floating window has the same size as your active terminal window (it should be at last). It looks like the image exactly fills the terminal window in the first screenshot. This is true?

yes, it's true. :) I'm confused that it doesn't put the window in the middle of the screen. Then the only question is how I can get it to have a floating window like IMV. Sorry for my bad English, and thanks for the reply! :)

artemsen commented 2 years ago

I'm confused that it doesn't put the window in the middle of the screen.

It is the main feature of Swayimg for me. So, it works as designed =)

Then the only question is how I can get it to have a floating window like IMV.

You can use -g to define own window geometry, for example:

$ swayimg -g 100,100,800,600 photo.jpg
hajosattila commented 2 years ago

This is a very good solution to my problem! (btw RTFM :grrrr) I just need to find the perfect center X Y coordinates...