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

Option to have normal borders #48

Open
bonnee opened this issue Sep 5, 2022 · 5 comments
Open

Option to have normal borders #48

bonnee opened this issue Sep 5, 2022 · 5 comments
Assignees
Labels

Comments

@bonnee
Copy link

bonnee commented Sep 5, 2022

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

@artemsen
Copy link
Owner

artemsen commented Sep 6, 2022

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

@bonnee
Copy link
Author

bonnee commented Sep 6, 2022

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
Copy link
Owner

artemsen commented Sep 6, 2022

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

@artemsen artemsen self-assigned this Oct 1, 2022
@voidbert
Copy link
Contributor

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

@artemsen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants