Code: Select all
ROOT free: ${fs_free /} used: ${fs_used /} total: ${fs_size /}
HOME free: ${fs_free /home} used: ${fs_free /home} total: ${fs_size /home}
Code: Select all
ROOT free: ${fs_free /} used: ${fs_used /} total: ${fs_size /}
HOME free: ${fs_free /home} used: ${fs_free /home} total: ${fs_size /home}
Code: Select all
${font Open Sans:Bold:size=12}${color}mounted ${color0}${hr 2}$color$font$
${font Open Sans:size=12}Data ${goto 80}${fs_used /media/DATA} / ${fs_size /media/DATA} ${goto 220} ${color5}${fs_bar 8,250 /media/DATA}${color} ${goto 500}${fs_free_perc /media/DATA}% frei ${color} ${goto 580}I/O: ${color5}${diskio_read /dev/disk/by-label/DATA}${color} : ${color5}${diskio_write /dev/disk/by-label/DATA}${color}
${font Open Sans:size=12}evo850 ${goto 80}${fs_used /media/evo850} / ${fs_size /media/evo850} ${goto 220} ${color5}${fs_bar 8,250 /media/evo850}${color} ${goto 500}${fs_free_perc /media/evo850}% frei ${goto 580}I/O: ${color5}${diskio_read /dev/disk/by-label/evo850}${color} : ${color5}${diskio_write /dev/disk/by-label/evo850}${color}
Inxi package is installed on MX and gives the total hard disk storage:wdscharff wrote: Sat Sep 16, 2023 8:06 am then an example of how to integrate INXI, shortened to the device output (found with google search)
Code: Select all
Storage: 386.94 GiB (78.5% used)
Code: Select all
create small bash scripts that produce conky syntax, and then call them with
${execp /path/to/script}
Code: Select all
Root: ${fs_used /}${alignr}/${fs_size /}
Stream: ${fs_used /media/Stream/}${alignr}/${fs_size /media/Stream/}
Data: ${fs_used /media/Data/}${alignr}/${fs_size /media/Data/}
Thanks, that's interesting.siamhie wrote: Sat Sep 16, 2023 4:27 pm I use this web site for all the code. http://ifxgroup.net/conky.htm#fs_bar
Code: Select all
${execp inxi | grep '^Storage:' | awk '{print $1 " " $2 " " $3 " " $4 " " $5}'}
Conky is corrupting inxi output by adding strange characters.... one small horizontal triangle and number 12 (forum doesn't show the triangle)Mjaakko wrote: Sat Sep 16, 2023 6:43 pm This syntax Conky doesn't accept or I am missing something? The shell command is correct.
That's bad either Conky or Inxi causing it. I like the clean and informative info of inxi, example inxi -bamlug wrote: Sun Sep 17, 2023 8:38 am Conky is corrupting inxi output by adding strange characters....
https://opensource.com/article/22/9/linux-inxi-commandDrives:
Local Storage: total: 953.87 GiB used: 75.44 GiB (7.9%)
Code: Select all
inxi -b | grep 'Local Storage:' > hdd-storage.txt
Code: Select all
${execp cat hdd-storage.txt | sed 's/ Local Storage:/HDD/'}
Code: Select all
HDD total: 386.94 GiB used: 322.05 GiB (83.1%)
Looks great.wdscharff wrote: Mon Sep 18, 2023 4:45 am so i still find my variant attractive, even though it's a lot to write myself.