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)
- arm64 HOT 3
- [BUG] Terminal font not recognized in tmux HOT 1
- [Question] Still trying to understand/familiarize new config, how to set user@host to custom@string ??? HOT 7
- [BUG] fastfetch shows different battery states when on Ubuntu WSL vs Windows HOT 3
- [BUG] Wrongly GPU detection? HOT 10
- [FEAT] Release filename without version
- [BUG] Segfault when building CPU name without BIOS Vendor ID available HOT 1
- where is fastfetch-linux-amd64.deb?
- [BUG] Terminal Font not shown in Scoop's Windows Terminal HOT 1
- [FEAT] Make an option to print only specific colors (equivalentr to block_range) HOT 5
- [BUG] fastfetch caused core dumped on vmware virtual machine HOT 1
- [BUG] Fastfetch caused core dump on vm HOT 3
- How to shorten the theme name? HOT 15
- [FEAT] Disable fetching for specific package manager HOT 2
- [FEAT] Multidevice bcachefs filesystem for disk module HOT 5
- [BUG] Wrong GPU detection on latest version HOT 11
- [FEAT] Additional Temperature Formatting HOT 2
- [BUG] Display of Terminal being used changed from older versions HOT 5
- How to translate HOT 2
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.