artemsen / swayimg

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

Option to have normal borders #48

Open bonnee opened 2 years ago

bonnee commented 2 years ago

Hi, would it be possible to add an option to enable normal window borders?

artemsen commented 2 years ago

Hi Bonnee, What is meant by "normal window borders"? Could you attach a screenshot of expected result?

bonnee commented 2 years ago

This is my expected result (all my other programs open like this): image But by default swayimg opens like this: image I was wondering if there's a way to set the default border behaviour without going through the sway config. My use case is that I want to use swayimg in a redistributable script that can be used with minimal external configuration, and having no borders results confusing

artemsen commented 2 years ago

Window decoration, I will think about it =) As a workaround you can add a rule for the swayimg window, but you have to use static appid:

swaymsg for_window "[app_id=swayimgapp]" border pixel 10
swayimg --class swayimgapp photo.jpg
voidbert commented 10 months ago

@artemsen Have you considered libdecor? It could be an optional dependency just like some image formats.

artemsen commented 10 months ago

I'm still waiting for the xdg-decoration protocol to become stable. Or maybe I’m just lazy, the original idea of the program was to embed itself into a terminal window, so I don’t use the decoration myself =) Anyway, thank you for pointing, I haven't seen libdecor before.