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

Better notch handling #120

Closed
FelixKratz opened this issue Dec 9, 2021 · 7 comments
Closed

Better notch handling #120

FelixKratz opened this issue Dec 9, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@FelixKratz
Copy link
Owner

FelixKratz commented Dec 9, 2021

Center Items make no sense on notched screens. Items can already be placed anchored left and right on the notch with the experimental positions position=q and position=e where the naming is subject to change.
The width of the notch can be adjusted via:

sketchybar --bar notch_width=<positive_integer>

The y-offset applied to the notched screen excusively can be set since fcef6cc via:

sketchybar --bar notch_offset=<positive_integer>

This thread can be used to collect further ideas for better notch handling.

It is frustrating when items get below the notch so there should be a method in place to prevent that, possibly by creating an "overflow item" like #119.

@FelixKratz FelixKratz added the enhancement New feature or request label Dec 9, 2021
@FelixKratz FelixKratz pinned this issue Dec 11, 2021
@typkrft
Copy link

typkrft commented Dec 13, 2021

I'm just going through and rewriting my bar with the notch in mind. Mostly just playing with ideas right now, but I was thinking it would be nice to have a fade in and out animation. On hover or when triggered this would look really cool. My goal is to almost completely fade out most of the items on the bar so it looks almost like capacitive buttons on the bezel. The bar needs to be dynamic now that there's a notch and information needs to be shown uniformly in certain places when it's relevant. I was thinking about writing a script but wasn't sure how to do this elegantly or without blocking processes with sleep commands.

Faded In
Screen Shot 2021-12-12 at 11 58 02 PM

Faded out
Screen Shot 2021-12-13 at 12 08 03 AM

@FelixKratz
Copy link
Owner Author

FelixKratz commented Dec 13, 2021

Animations are on my todo list, simple transitions between colors and positions should be no problem to implement, maybe I will look into some nice easing functions for that as well. But in preparation for this I need to work on the core logic a bit to make this resource efficient. Maybe I will have some time for this over the holidays, as I already have the syntax for this sketched out roughly.

With the current scripting this is probably not possible in an efficient manner.

@FelixKratz FelixKratz unpinned this issue Dec 17, 2021
@FelixKratz
Copy link
Owner Author

I think #132 will also aid the notch handling, because many information can now be put into a popup window.

@FelixKratz
Copy link
Owner Author

The notch_width property is broken in the current release, but since it is undocumented so far I will not create a new release for this. It has been fixed on master.

@FelixKratz
Copy link
Owner Author

I'm just going through and rewriting my bar with the notch in mind. Mostly just playing with ideas right now, but I was thinking it would be nice to have a fade in and out animation. On hover or when triggered this would look really cool. My goal is to almost completely fade out most of the items on the bar so it looks almost like capacitive buttons on the bezel. The bar needs to be dynamic now that there's a notch and information needs to be shown uniformly in certain places when it's relevant. I was thinking about writing a script but wasn't sure how to do this elegantly or without blocking processes with sleep commands.

Faded In Screen Shot 2021-12-12 at 11 58 02 PM

Faded out Screen Shot 2021-12-13 at 12 08 03 AM

The fade in, fade out animation should now be possible on latest master with the new animation feature and the global mouse entered and exited events (#178).

@B1T3X
Copy link

B1T3X commented Jun 12, 2022

Personally, I use a program called "forehead" to hide the notch, and use y_offset to lower my bar to be fully visible.

@FelixKratz
Copy link
Owner Author

As these features will be included in the upcoming release officially and are now documented I will close this for now.

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

No branches or pull requests

3 participants