Giter Club home page Giter Club logo

Comments (8)

kb100 avatar kb100 commented on June 17, 2024 1

You can read about dynamic properties here: #132. The previous link is the guide I wrote to myself to help convert blocks form the old format to the new one. Basically, i3blocks now passes all property=blah things in the config as variables to your script, instead of just command, full_text, signal, instance, etc.

from i3blocks-contrib.

vivien avatar vivien commented on June 17, 2024 1

Thanks @Aster89, the new documentation is in progress and should be out very soon.

from i3blocks-contrib.

jolange avatar jolange commented on June 17, 2024

Version 1.4 does not support the dynamic properties yet. You'll either need to use the current git version of i3blocks or wait for the next release until you can use the scripts in the current format as contained in the master branch of this repository.

from i3blocks-contrib.

Aster89 avatar Aster89 commented on June 17, 2024

I imagined this, but then I supposed it could not be that way since I read Each release of this repository will be guaranteed to work against a given release of i3blocks (a.k.a. core). on the i3blocks-contrib page. There I understood that the master branches of the two repos should be guaranteed to work with each other. Have I missed something?

from i3blocks-contrib.

kb100 avatar kb100 commented on June 17, 2024

@Aster89, the master branch of i3blocks now also supports dynamic properties, and we coordinated to make both repos make the change at the same time, so indeed right now the master branch of both should work with each other. Right now is a bit hectic for us so please be understanding (and, even better, help us!).

from i3blocks-contrib.

Aster89 avatar Aster89 commented on June 17, 2024

@kb100 , I really thought I was barking up the wrong tree when I read the 3 by 2 table.

Well, I'd be glad to help you, but I think I'm not at that level yet. Actually I've done a small edits to my blocklets, but they're all about fancy stuff. In this respect, I'd really appreciate if you could provide me with some reference where I could start from to understand this (vague to me) thing of "dynamic properties".

Maybe it's nice to tag @vivien as well, so he can read about the broken link without his issues page being clogged with small detail issues.

from i3blocks-contrib.

Aster89 avatar Aster89 commented on June 17, 2024

Just for curiosity, if those capitalized names just define variables to be used in the scripts, putting them in the i3blocks config file without editing the blocklets scripts should result simply in unused variables, shouldn't it? Instead it breaks the i3blocks output. Maybe the reason is that i3blocks can't parse those options yet?

from i3blocks-contrib.

kb100 avatar kb100 commented on June 17, 2024

@Aster89 the old version of i3blocks cannot parse new dynamic properties, so it crashes. In the current version of i3blocks, if you add in extra options they will just be unused variables.

from i3blocks-contrib.

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.