Giter Club home page Giter Club logo

simple-bar's People

Contributors

alexnaga avatar amar1729 avatar andyqhan avatar anujc4 avatar ardnep avatar badlydrawnface avatar d-miketa avatar dependabot[bot] avatar dotzenith avatar haxybaxy avatar heysora avatar is0n avatar issmirnov avatar jamieweavis avatar jean-tinland avatar jeantinland avatar jming422 avatar kn4ughty avatar kvndrsslr avatar lcjnil avatar matzegebbe avatar mdwitr0 avatar mikomagni avatar mrala avatar rosenpin avatar sijanc147 avatar sleepybaby898 avatar theshortcut avatar yorhodes avatar zhongxilu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-bar's Issues

Get data script fails when Spotify is open but not playing a track

There is an edge case where the get_data.sh script fails when Spotify is open but there isn't a song currently playing/selected which means that all of the data widgets fail to display

I think that Spotify can get into this state after a system reboot

55:61: execution error: Can’t make name of «class pTrk» of application "Spotify" into type string. (-1700)
57:63: execution error: Can’t make «class pArt» of «class pTrk» of application "Spotify" into type string. (-1700)
{ "battery": { "percentage": "100", "charging": "true", "remaining": "0:00" }, "wifi": { "status": "active", "ssid": "Cooper" }, "sound": { "volume": "31", "muted": "false" }, "spotify": { "spotifyIsRunning": "true", "playerState": "stopped", "trackName": "", "artistName": "" } }

We should probably hide the Spotify widget if the trackName and artistName are empty strings?

[Question] Sometimes space-widgets show windows which don't exist

Example: Space 4 shows 8 Windows
image

When I go to space 4, those windows disappear on space 4, appear on space 6:
image

If I click on space 6, those windows appear on space 7:
image
(also notice here, that the three windows which really exist in space 6 just appeared correctly)

etc. I've noticed this yet only, if I am making adjustments to my yabai settings and reload everything with brew service restart yabai as far as I remember.

Have you seen this? Is that a bug in simple-bar or yabai?

Thanks

Conditional Refresh of widgets

Is there a way to only refresh widgets (utilizing the yabai signals) if Ubersicht is actually running? Whenever I quit Ubersicht, it will immediately restart once yabai emits a signal telling the widgets to refresh

[suggestion] light & dark theme.js

Hi Jean,

I have another suggestion, I would like to see the light and dark theme as two separate files, something like dark_theme.js and light_theme.js

Currently, the light theme is "hardcoded" in the man style.js making it harder to maintain with the constant updates (even if the updates are great 👍)

What do you think?

simple-bar-data.jsx crashes when spotify goes into idle state

simple-bar-data.jsx: Something went wrong... when my Spotify session finishes (the queue is empty and "autoplay similar music when finished" is disabled).

I tried to add a console log stmt to data.jsx like you mentioned in a previous issue but it came back undefined.

Here is the Spotify idle state I am referring to:

Screen Shot 2021-01-06 at 6 27 49 PM

[Question] What is that "stacking"

On your web page, I can see in the screenshots, that on the left of your main window is some kind of "app stacking". Is that related to Übersicht or Yabai or Space-Bar?

image

I would be interested in the workflow in this case.

Bonus Question: Whats that wallpaper =) Is it Star Trek?

Multiple Window Icons

Using the PiP Feature in Firefox causes the Firefoxicons in the Spaceswitcher to appear multiple times.
grafik

Sometimes it happens too when using the preview feature in macos, here in workspace 5, but the preview is opened in 6:
grafik

Any ideas?
Thx!

[suggestion] space --label

One of the best Übersicht bar, thanks for sharing it 🔥

Would you consider showing the space label if the label is set on a space?

simple-bar

Can't create workspaces despite SIP being disabled.

I have SIP disabled on my macbook, yet when I try to create new workspaces with simple-bar, it plays the animation etc., but nothing else happens. When i run csrutil status, I get
"System Integrity Protection status: disabled." I am on MacOS Big Sur, and all the other widgets etc. work fine.

Simple Bar - Big Sur

Hello, I am trying to use simple-bar on Big Sur, and I believe an error is occurring. The top left part of the bar displays the following:
image

[question] System Integrity Protection status: unknown (Custom Configuration)

I have SIP partially disabled as per Yabai documentation on MacOS 10.15.6

# If you're on macOS 10.14 and above
# (printed warning can be safely ignored)
csrutil enable --without debug --without fs

I can create and destroy spaces with skhd however, simple-bar is not displaying the extra options.

I think it is because csrutil status return

System Integrity Protection status: unknown (Custom Configuration) 

instead of

System Integrity Protection status: disabled. 

And simple-bar is looking for the disabled.

I will have a better look at it over the weekend but just wanted to ask if there is any reason that you need SIP completely disabled?

Thanks

Delay using the applescript method to refresh yabai spaces

Hi!

I love simple-bar, its modularity, its themes... it's just great.

The one thing that's driving me crazy, though, is that when I change spaces (with yabai), it takes about a second to refresh. Of course I did add the signals stuff in the yabai config, and even set the refresh rate in the widget to false to make sure it was indeed the applescript stuff that refreshed the widget but no, I guess applescript is just that slow.

I'm not sure this is something you can do much about but this is the only place I could reach out to ask:

Isn't there a better way?

I've been trying spacebar, which is a direct fork of yabai and its rudimentary status bar stuff. There the space indicator change is of course instant, but spacebar is nowhere as nice as what one can achieve with Ubersicht.

I hope we can find another way to refresh simple-bar (or any Ubersicht widget, I guess).

[Enhancement] Apple Music Button

For the spotify module, is it possible to add support for apple music? I am also working on this now and if I am done I will give a pull request.

Automatic space swithing is not working.

When I switch from one space to another space using track pad gesture action is not getting reflected in the spaces widget. Only one space is shown as current no matter which space I am in.

Workspace indicator doesn't change.

I recently installed the lates version of yabai through brew, then Ubersict and simple-bar, and so far it looks impressing. However the indicator is stuck at workspace/desktop 1.

Remove/toggle process name

I'd like to remove the process name which is rendered in the middle (but need the component for Settings).

Is it possible to toggle this on/off?

Quite disturbing navigating in the shell and seeing this flashing due to a re-render when a directory is switched.

(The Process component)

Something went wrong with simple-bar-data

MacOS Catalina 10.15.6
Ubersicht downlaoded app.zip
Yabai installed and running through brew services
SIP disabled

Getting this error "Something went wrong . . ." showing on the right side of the status bar and no date/time/wifi just the text error. Spaces are working well with Yabai. Have recloned to no avail.

Thanks

Bar not refreshing

Love the bar! Just installed it and I can't get it to refresh. The bar stays in the state when it was initially loaded.

When I click on a workspace I see the following console error:
Screen Shot 2020-09-11 at 11 50 35 AM

Not sure if this is a user error or what I can do to get this working correctly.

[Error] Spaces and process erroring out

simple-bar-spaces.jsx and simple-bar-process.jsx both throwing "Something went wrong..."; Console spamming 500 errors

MacOS Catalina 10.15.5 with Yabai; Not exactly sure what I should provide, feel free to ask anything you need

A lot of "Something went very wrong errors"

Hello Jean :D. Good to see this repository is doing well. I'm here because I decided to mess around with my MacOS Rice a little. I decided to reinstall your version of simple-bar rather than a friend's take on it. I see that on the usage of the command

git clone https://github.com/Jean-Tinland/simple-bar $HOME/Library/Application\ Support/Übersicht/widgets/simple-bar

This freaks simple-bar out and I don't know how to solve it
image
Thanks in advance for any help you can provide!

[Bug] Space labels beginning with numbers

Spacelabs beginning with numbers will not be interpreted in the space widget. I tried several forms:

  1. "1 Name"
  2. "1_Name"
  3. "1Name"

The space will be shown as the space number, no name at all.

Having a number on pos >1 is working properly.

Slide in animation

Hey there, love the bar.

I had a go at doing this myself, but my CSS-foo is not great and I'm a little lost.

Trying to replicate the effect found here (look at the first alonso example).

Where, if I switch to a space to the right of the current space, then the the 'focussed' color slides to the right. Towards the new space. Likewise, the opposite if the new space is to the left, the 'focussed' color slides to the left.

Any thoughts on this? I tried toying with the CSS, and potentially adding a rotate transform to the ::after element, but I don't really know what I'm doing here.

Bug on adding second display in Big Sur

I started using simple-bar with a secondary display attached. For some reason, my simple-bar looks like this
image

I think this might be a CSS issue and it is only happening on the second display. While I try to figure it out, I'm posting this issue to see if anyone else is facing this issue.

simple-bar-data.jsx stuck loading

Sometimes when starting Ubersicht the top-right bar never finishes loading. It'll often be resolved when I restart my Mac, but not always.

Screen Shot 2020-12-17 at 11 23 49 AM

Blackbox in Simplebar Render

Hello Jean :D Back again in Warp configures his MacOS horribly Part 2! This time, there is a weird black box that now occupies the top left corner of my screen. Any ideas on what could be causing it

image

Terminal space icon is hard to see on low resolution screens

Hey Jean,

The current terminal space icon is quite difficult to recognise on lower resolution external screens, for example (in 1080p):
Screenshot 2020-09-15 at 08 23 06Screenshot 2020-09-15 at 08 52 22

I tried a similar prompt icon without the surrounding box and it looks slightly better, but maybe there are better options?
Screenshot 2020-09-15 at 08 34 55Screenshot 2020-09-15 at 08 40 25

Other suggestions:

  • Single chevron (without the underscore)
  • Dollar sign

Icon Requests

Im working a lot with Blender, iTerm2 and Affinity Products (Photo, Designer, Publisher).
Any chance of getting the additional appicons integrated in the windowswitcher?

Thanks!

Missing Spaces randomly

First of all, the bar has a great UX!

But sometimes the spaces disappear, after switching workspaces or creating new windows.
Whats the best way to debug this?

Thanks!

Exceptions based on window title as well as app name

As mentioned in this Yabai issue, Microsoft Teams spawns Notification windows with AXWindow/AXStandardWindow subroles so they show up in simple-bar processes. It'd be useful to be able to create an exception for windows with the following attributes:

{"app":"Microsoft Teams",
"title":"Microsoft Teams Notification"}

This way the main Teams window is shown but the extraneous notification windows are hidden from the spaces widgets. I've seen Zoom behave in a similar way, so it may be applicable to that case too.

Ubersicht/Simple-Bar hangs Yabai on BigSur

Hello and thank you for your amazing work on this beautiful addon!

BigSur update from a perfectly working version of yabai + simple-bar on Catalina made using the widget impossible.

Ubersicht/simple-bar somehow hangs yabai if the following signals are present in the .yabairc:

# Refresh spaces widget on space change
yabai -m signal --add event=space_changed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-spaces-jsx\"'"
# Refresh spaces widget on display focus change
yabai -m signal --add event=display_changed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-spaces-jsx\"'"
# Refresh process widget on space change
yabai -m signal --add event=space_changed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-process-jsx\"'"
# Uncomment next line to enable spaces widget refresh on your 2nd monitor
# yabai -m signal --add event=space_changed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-spaces-2-jsx\"'"

# Refresh process widget on when focused application changes
yabai -m signal --add event=application_front_switched action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-process-jsx\"'"
# Refresh spaces widget on when focused application changes
yabai -m signal --add event=application_front_switched action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-spaces-jsx\"'"

# Refresh process widget on when an application window is closed
yabai -m signal --add event=window_destroyed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-process-jsx\"'"
# Refresh spaces widget on when an application window is closed
yabai -m signal --add event=window_destroyed action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"simple-bar-spaces-jsx\"'"

Yabai's /usr/local/var/log/yabai/yabai.err.log shows this:

45:86: execution error: Übersicht got an error: Can’t get widget id "simple-bar-spaces-jsx". (-1728)
45:87: execution error: Übersicht got an error: Can’t get widget id "simple-bar-process-jsx". (-1728)

Bar position

Hey,
the new settings look good, another idea for an option would be to define the bar position, for example [ ] - Top [ ] -Bottom.
What do you think?
This would include the Popup which moves or delete Spaces.

[Components] No Music/Apple Music container

While hearing music via Apple Music App, or Spotify web or Apple Music web, I cannot see any title in the bar.

It seems, that simple-bar also not recongize the Music App from Apple.

image

Am I doing something wrong here? I enabled all Widgets.

Thanks for the great work.

feature request: add "highlight" color for current space on inactive display

The title is poor, but i struggle to explain this simply so i provide some images instead.

I am often running into issues where i am moving a window from one display to the next and then end up sending the window to the incorrect space because there is no indication of what space is currently being shown on the inactive display.

Story

I have the following windows and spaces on Display 1.
Screenshot 2020-12-24 at 12 39 54

Here we can clearly see that space 1 has two apps (vscode and spotify), the others are full screen. I now want to move vscode to one of my other displays, say Display 2

Display 2 has these spaces:
Screenshot 2020-12-24 at 12 44 13

At a glance i can see that Display 2 is not displaying full screen so the only options are space 5 or 7. This is the point where i have to either make the target display active so that the i know the index of the active space on that display, or simply make an educated guess. Most of the time i end up missing..

Would it be possible to add a secondary color that would indicate what the current active space is on every inactive display?

Doesn't work if yabai is not installed in /usr/local/bin

I use Nix to manage my MacBook, and it doesn't install things to /usr/local/bin. It would be awesome if there was a way to inject the yabai path into the scripts rather than it being hard-coded to /usr/local/bin/yabai, even if that remains the default.

Make network device configurable

My Mac Mini has both WiFi and ethernet. This caused simple-bar to not work properly until I edited the source so that it queried en1 instead of en0 (See this patch).

Can the network device either be made configurable or auto-detected somehow?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.