Git Product home page Git Product logo

Comments (3)

tobi-wan-kenobi avatar tobi-wan-kenobi commented on June 19, 2024

Yes, I believe this is a restriction from the Python library I am using - for security reasons.

I will think about how to document that better, though I think it is somerhing of a fringe case.

Thank you very much for your praise, glad you like bumblebee-status!

from bumblebee-status.

ndroppo avatar ndroppo commented on June 19, 2024

Ah. That makes sense. In that case maybe just a simple note in the docs that complex commands are beyond the scope of the module. Is the bit that is already in there a typo? It looks like the right way and wrong way are identical.

To be thorough, I tried putting my command in a bash script and calling the script from the shell module. It just gave me a perpetual please wait...

Also, in case it matters to anyone all of the above results are with async=True. My entire status line goes away without that, but I think issue #1001 already addressed that so no need to dig into it here.

Do you know of a way that does work to prepend a single character (icon) to the beginning of my output? If not, no worries. I'll just use the command that works until I get the time to play around with making my own modules. And maybe I'll put in a separate feature request for a way to attach a custom icon to any module. I think that would be pretty cool.

The praise is genuine. This project really embodies everything that is great about open-source software. Keep up the great work!

from bumblebee-status.

tobi-wan-kenobi avatar tobi-wan-kenobi commented on June 19, 2024

Having it as a separate bash script definitely should work, please wait would indicate the bash script does not terminate, maybe? If you show me the bash script and the bumblebee config, I can gladly try it locally and let you know.

For a custom icon, you have 2 options: The simpler one is to just add it to the output of the bash script via echo (from the font you are using, so for example font awesome). Alternately, you can edit the JSON of the theme you are using, there's settings for the prefix to use.

Hope this helps!

from bumblebee-status.

Related Issues (20)

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.