kkga / nibar Goto Github PK
View Code? Open in Web Editor NEWSimple Übersicht status bar with yabai support.
License: MIT License
Simple Übersicht status bar with yabai support.
License: MIT License
I see that in the readme jq is listed as a dependency but I don't see it used anywhere, if it's not used then could we please remove it from readme? if it's used and I missed it please feel free to close the issue
and thanks for the awesome work!
Totally unrelated to the project itself: what font are you using in the README.md screenshot?
When changing display to an already active space, yabai will not trigger the space_changed
signal. However, adding the following signal will fix the problem:
yabai -m signal --add label=labi event=display_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
yabai -m signal --add label=labo event=display_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"
Note: This will trigger two refresh if you both change display and active space.
I think I find the reason for these two issues.
Because there are two Ü. One is U+00DC, the devil. If you directly copy from the website, you probably will end up with this. The right one but actually is two chars: U+0055(U) U+0308(Combining Diaeresis).
I think this information should be added to the readme somehow.
Hi,
I just installed your widget and in the desktop infos (on the left) i have an error :
Error : unknown script output
I looked at both primary and secondary spaces scripts and ran them manually. Primary printed a correct result but secondary did not, saying it could not locate the given display.
In spaces-secondary.sh
I replaced this line by :
SPACES=$(yabai -m query --spaces --display)
But i still have the same error. Do you know what's causing this ?
Thanks
I found that the refresh of widgets via AppleScript was too slow. It turns out it was quite an effort to do it another way, but I came up with a solution that you might be interested in:
https://github.com/camspiers/dotfiles/tree/master/files/.config/ubersicht
New program to get active space changes from stdout:
https://github.com/camspiers/dotfiles/blob/master/files/.config/ubersicht/activespace.swift
Build step:
https://github.com/camspiers/dotfiles/blob/master/Makefile#L18
SSE server for delivering SSE's to Ubersicjt widgets:
https://github.com/camspiers/dotfiles/blob/master/files/.config/ubersicht/lib/activeSpaceServer.js
Subscription to it from a widget:
https://github.com/camspiers/dotfiles/blob/master/files/.config/ubersicht/left.jsx#L43
I attempted to install nibar and received these three errors.
I figured it was a problem with yabai's scripting additions not working properly on M1. However, I followed the advice in this thread:
koekeishiya/yabai#725
and ended up getting yabai --load-sa to work just fine. However, the error messages still won't go away.
I also installed jq as per this thread:
#1
I assume the secondary spaces jsx file they mention in that thread is from an older version of nibar because I can't find it in the widget's folder.
I have no clue what I'm missing, any help would be appreciated!!
Pretty new to unix ricing, but have been playing around with yabai and Übersicht for some time.
I just fail to see what is meant by yabai support.
And what is the purpose of the numbers to the left, as seen on the readme screenshot
Are these used used to show label of the current desktop, if so then that would be awesome.
Silly question, but perhaps useful for any other newcomers.
Thanks!
Error 500's in the console when the widget is loaded
I had to make minor changes to the Apple Script to make it work. Referring to the app by id works fine.
yabai -m signal --add event=space_changed \
action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.