Comments (8)
A new flag --diskio-detect-total
has been added to support the required feature.
$ ./fastfetch -s diskio --diskio-detect-total --pipe
Disk IO (APPLE SSD AP1024R Media): 64.17 GiB (R) - 15.35 GiB (W)
Worth noting that the result applies to physical disks, not partitions.
from fastfetch.
There is DiskIO
. You may try it with fastfetch -s diskio
from fastfetch.
There is
DiskIO
. You may try it withfastfetch -s diskio
That's great, but I see that only prints the the current B/s instead of total Bytes.
Iostat does report the total kB_wrtn without needing sudo rights, I don't know how difficult it would be to implement that feature into fastfetch.
from fastfetch.
DiskIO
was implemented by calcuating total-bytes growth rate
. I think I can implement an option for DiskIO
to let it report total bytes.
from fastfetch.
DiskIO
was implemented by calcuating total-bytes growth rate . I think I can implement an option forDiskIO
to let it report total bytes.
Thank you, in the meantime I'm using iostat with this:
iostat -m -d | awk 'NR==4 { print $7" MiB Written" }
Which does print exactly that info.
from fastfetch.
You can embed this command into fastfetch
{
"key": "Whatever",
"type": "command",
"text": "iostat -m -d | awk 'NR==4 { print $7\" MiB Written\" }'"
}
from fastfetch.
{ "key": "Whatever", "type": "command", "text": "iostat -m -d | awk 'NR==4 { print $7\" MiB Written\" }'" }
This also totally works for me, thank you so much for that!
I will leave the decision on whether to close this issue and not implement the feature to you, I'm very happy either way.
Edit: Ended up replacing the Uptime part for the custom script that does print the uptime info as well as the total MiB wirtten:
{
"key": "Uptime",
"type": "command",
"text": "( uptime -p && iostat -m -d ) | awk 'NR==1 { printf $2\" \" $3\" \" $4\" \" $5} NR==5 { printf \" (\"$7\" MiB written)\" }'"
},
from fastfetch.
fastfetch -s diskio --diskio-detect-total ``
A new flag
--diskio-detect-total
has been added to support the required feature.$ ./fastfetch -s diskio --diskio-detect-total --pipe Disk IO (APPLE SSD AP1024R Media): 64.17 GiB (R) - 15.35 GiB (W)Worth noting that the result applies to physical disks, not partitions.
Great, but is it possible to add it to the json config? I tried "diskio-detect-total",
and that did not work.
If I use the flag it gets printed at the end of everything.
edit: I added it as a embedded command lol:
{
"key": "Physical Disk Total IO",
"type": "command",
"text": "fastfetch -s diskio --diskio-detect-total | awk '{ print $4 \" \"$5 \" \"$6 \" \"$7 \" \"$8 \" \"$9 \" \"$10 }'"
},
edit2: FIgured it out, it has to be in the json config like this:
{
"key": "Physical Disk Total IO",
"type": "diskio",
"DetectTotal": true
}
I changed the key name to a more proper name as well.
from fastfetch.
Related Issues (20)
- Add TUXEDO OS HOT 11
- [LOGO] Add GuestSneezeOS HOT 1
- [BUG] fastfetch breaks tty HOT 22
- [LOGO] Add Mauna Linux HOT 1
- [BUG] Bluetooth Audio volume % is offset
- [LOGO] Moopsy! HOT 1
- [BUG] Rectnagle WM not detected on macOS HOT 1
- [FEAT] Illumos; Solaris OS Support: Logos HOT 3
- [FEAT] Stripped Down Fastfetch for 16-bit/ia16 x86 OS ELKS HOT 1
- [FEAT] MegaChallenge: 8-bit Fastfetch for FUZIX 8-bit UNIX-Like OS HOT 1
- [FEAT] Add detection of NPUs / AI accelerators and their capabilities. HOT 1
- [FEAT] Module to display upstream distro(s) HOT 3
- [FEAT] Detect panel type for monitors. HOT 1
- [BUG] fastfetch breaks tty when reading the "Display" variable HOT 3
- Able to use two colors in the key HOT 4
- [BUG] why do fastfetch and neofetch show different memory ammount being used HOT 9
- [BUG] Incorrect Local IP since 2.12.0 HOT 5
- [BUG] Wrong GPU frequency shown. HOT 15
- [BUG] Crashes(SIGSEGV) When trying To Get Init System On Türkçe Language HOT 31
- [BUG] [Pedantic] GNOME is capitalized incorrectly.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastfetch.