Comments (9)
Interestingly, this kind of bug has been around for quite some time now and I am not entirely sure what could be the reason for this (#430, #422). I have not been able to reproduce this problem but I think it has something to do with external displays, can you confirm that this is only a problem on external displays? Could you share some more system information and importantly test if this kind of bug also happens with this kind of minimal config:
sketchybarrc
sketchybar --bar color=0xffffffff height=40
Thanks for testing!
from sketchybar.
I suspect this will be monitor related, I have two external monitors, one Benq and one Dell / Alienware. I have had issues with this setup on a different machine with both these monitors running Hyprland on arch. I assumed this was maybe Hyprland related. That said no issues on MacOS (unmodified) / Windows.
I will do some testing for you and report back.
from sketchybar.
OK I can make it break with just a simple bar config, as follows.
#!/bin/bash
sketchybar --bar color=0xffffffff height=40
It gives no error / debug messages when running in foreground.
Further funky complicated hardware info
Mac Mini M1
One display connected to onboard mac HDMI via a KVM this is the BenQ PD2500Q display @60Hz
One display connected to Caldigit TS3 Plus Thunderbolt dock via active display port to HDMI adapter, this is DELL AW2723DF display @144hz
from sketchybar.
Do you need to enter a password to unlock the screen after sleep or no? I could imagine that this might be a timing problem, where we are handling the system_woke event before the displays are connected but the system does not send another display connect event. This leaves us in a state where sketchybar does not know about the displays and thus does not draw a bar.
from sketchybar.
Yes I do need to enter a password to unlock. So it will wake the Mac and the monitors then ask for a password. It could well be a timing issue. I am working around by using an app that allows me to run a script on wake but maybe that is doing different timing.
from sketchybar.
What would be interesting to see is whether the system_woke
event is properly received.
To test this you can run the following:
sketchybar --add item woke left --set woke label="No" script='sketchybar --set $NAME label="$SENDER"' --subscribe woke system_woke
There should be an item appearing in your bar which should say system_woke
after your system wakes from sleep (together with your hacky fix so you can see the bar again....)
from sketchybar.
I can confirm with that test config I am getting system_woke messages on the bar. So it is receiving the system_woke message. This is waking from a full sleep where I have to enter my password.
from sketchybar.
What happens if you perform your hacky workaround of changing the display property inside of this script? I.e.:
sketchybar --add item woke left --set woke label="Testing" script='sketchybar --bar display=main display=all' --subscribe woke system_woke
without any other script doing the same thing?
If this works it confirms that it is a timing issue.
from sketchybar.
I did do a test of this and it did indeed work. I then went to do some further testing to make the bar break again and then swap between configs to A / B test and now I can't make the bar break!
I have now got my hack work around disabled and every time I put it into sleep and it comes back the bar work (this is without your config to change the display property).
I am confused, I am going to run this for another week and see if I can break it again and report back, if I can't I can close this off as, well I don't know!
from sketchybar.
Related Issues (20)
- scroll_texts property value not included when querying item
- Add an option to separate mouse scrolled vs mouse trackpad scrolled events HOT 2
- mouse.scrolled events really really slow on m1 macOS Sonoma HOT 1
- Add feature for TeXLive Manager and outdated packages
- [Bug] A space tracking error after quitting a full-screen application
- why arent the icons appearing ? HOT 1
- Gradient support for element color HOT 2
- Issue with multiple displays HOT 4
- Mention $BAR_NAME in "config/events" docs environment variable section
- mouse.scrolled Incompatible with Scroll Smoothing App
- brew services making error 19968 on my mac HOT 1
- Help with scroll_text HOT 1
- Icon separation HOT 1
- how to run sketchybar on startup HOT 1
- add service managment into sketchybar like yabai HOT 1
- Mac personalizations
- [Featuee Request] Adding an item with before/after specific items
- Background aware font setup HOT 4
- front_app_switched event firing multiple times HOT 2
- [help]get some errors in the time display HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketchybar.