da-rth / yasb

A highly configurable cross-platform (Windows) status bar written in Python.
MIT License
1.37k stars 80 forks source link

[FEATURE] Always on top but hide when in fullscreen mode #15

Open sitiom opened 2 years ago

sitiom commented 2 years ago

What is the request?

I have recently learned of ElevenClock which replaces the system clock and is also written in Python. One interesting feature I found there is its ability to hide in fullscreen mode despite it being an always-on-top window sitting on top of the taskbar. image

Why is it useful?

I remember you sent a yasb config that places the workspace indicator on the bottom where the taskbar is located. image

However, for it to be unobtrusive, one would have to use TranslucentTB or RoundedTB (or both, which I do). Some people may not want this and want it to look integrated into the taskbar like how ElevenClock does. image

How could it be implemented?

You may want to look at ElevenClock does it

da-rth commented 2 years ago

Looks like the hide on fullscreen functionality is implemented here: https://github.com/martinet101/ElevenClock/blob/main/elevenclock/__init__.py#L1231

This method appears to be getting called in a silly loop in the background. Can probably use this as a reference, but I likely wont implement this until the tauri rewrite of yasb is near completion

da-rth commented 2 years ago

Additionally a significantly less complicated solution can be found here:

https://stackoverflow.com/a/58755620

sitiom commented 2 years ago

So ElevenClock's solution is "hackish"?

QiangF commented 2 years ago

I really like the i3bar behavior:

Show on Windows key down, hide when windows key is released.