~mil/sxmo-tickets#494: 
Notch support

Currently, upstream is discussing how to implement notch support:

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/87

Regardless, Sxmo doesnt need this issue to be resolved upstream and we can work around notch issues in sway/dwm.

In sway, you can set the config to:

bar { gaps 42 0 } 

and the area around the notch will just not be used to display anything. It works extremely well.

How do we want to include this in the default config? Do we want to create an environmental variable in the device profiles and how would we load that environmental variable in dwm and sway config?

Status
REPORTED
Submitter
~anjan
Assigned to
No-one
Submitted
1 year, 7 months ago
Updated
3 months ago
Labels
No labels applied.

~kohn 11 months ago

Perhaps on a seperate file which will be called from dwm and sway config using include?

~mafe 9 months ago

Seems to relate to #351 - Handling phone-specific sway configuration

I put mine to the bottom via bar { position bottom } as I have the same on my laptop devices. That doesn't solve nothing as the round display corners strip some of the information when the on-screen keyboard is disabled.

With this configuration the notch and the display corners are an issue for the notifications, too.
The top-right part is hidden behind the round display corner, the top-left part hides behind the notch, you can't read anything.

Thus, SXMO indeed does need this issue to be resolved upstream.

~stacyharper 9 months ago

I think this could be a part of the deviceprofiles. Check scripts/deviceprofiles from sxmo-utils

~plasmastrike 8 months ago

~plasmastrike 8 months ago

Notches are an annoying thing to deal with for whatever goes in their place:( With Firefox bars or whatever app you have open is not worth coding a gap for In the top bar with a device specific profile sounds like a clean solution:)

~magdesign 5 months ago*

we could add a variable in deviceprofile, telling how many characters are hidden by the notch. e.g. NOTCH="9" would add 9 characters between battery and wifi symbol like this: sxmobar -a notch 35 ooooooooo

which would be written to sxmo_hook_statusbar.sh

~proycon 3 months ago

On Mon Jul 3, 2023 at 3:41 PM CEST, ~magdesign wrote:

we could add a variable in deviceprofile, telling how many characters are hidden by the notch. e.g. NOTCH="9" would add 9 characters between battery and wifi symbol like this: sxmobar -a notch 35 ooooooooo

That sounds like the easiest solution to me too. I do worry if sufficient space remains for all our icons then.

~stacyharper 3 months ago

"~proycon" outgoing@sr.ht wrote:

On Mon Jul 3, 2023 at 3:41 PM CEST, ~magdesign wrote:

we could add a variable in deviceprofile, telling how many characters are hidden by the notch. e.g. NOTCH="9" would add 9 characters between battery and wifi symbol like this: sxmobar -a notch 35 ooooooooo

That sounds like the easiest solution to me too. I do worry if sufficient space remains for all our icons then.

I'm pretty much sure we can configure a blank space in Sway. This avoid the problem, without being satisfying. Only the composer could handle this.

~magdesign 3 months ago

what has to be solved is; when for example running vlc player it adds a symbol on top right, which moves everything to the left and the inserted empty notch space should shrink by this amount.

Register here or Log in to comment, or comment via email.