Giter Club home page Giter Club logo

Comments (7)

vivien avatar vivien commented on August 14, 2024

It looks great! Note: it'll be more relevant to use $! instead of $? to have the error message instead of the returned code in die() ;)

from i3blocks.

deimosfr avatar deimosfr commented on August 14, 2024

Oh damn that's a shame! I think this is the same on the other as well

from i3blocks.

vivien avatar vivien commented on August 14, 2024

@lionelnicolas uses this in his screen session:

free | awk '/buffers\/cache:/ {printf "ram: %.2f/%.2fGo (%.0f%%)", $3/1048576, ($3 + $4)/1048576, 100*$3/($3 + $4)}'

(you can try it directly in a command= property)
What do you think?

from i3blocks.

deimosfr avatar deimosfr commented on August 14, 2024

Nice awk tweak, however there's no colorization with it and no swap information :-(

from i3blocks.

deimosfr avatar deimosfr commented on August 14, 2024

Any news?

from i3blocks.

vivien avatar vivien commented on August 14, 2024

The script looks fine. However, I'm not sure about the utf-8 char.

It looks nice, but it doesn't seem obvious that what block is about. The fraction notation might be confusing as well. What do you think about the "MEM/SWAP:" prefix?

from i3blocks.

deimosfr avatar deimosfr commented on August 14, 2024

As explained on that issue: #13, on little resolution, if we add text on each checks, it is not possible to show everything. In my use case, I got the issue on a vertical oriented screen.

So what I suggest is to add an extra argument in the check to replace text by icon. It permit to know exactly what it correspond to at the beginning and then have easily the possibility to change text by icon. What do you think?

Regarding the icon choice, they are aligned as the icon on a motherboard (https://www.google.fr/search?q=RAM+motherboard&client=firefox-a&rls=org.mozilla:fr:official&channel=sb&source=lnms&tbm=isch&sa=X&ei=wsNUU4yRGMTZOu6-gYgF&ved=0CAgQ_AUoAQ&biw=1536&bih=770). That's why I've choose that icon. If you find a better one, please provide ones.

from i3blocks.

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.