Page 1 of 1

Can conky show savefile use? SOLVED

Posted: Sun Dec 26, 2021 4:40 pm
by wizard

Thought it might be useful.

wizard


Re: Can conky show savefile use?

Posted: Sun Dec 26, 2021 5:12 pm
by rockedge

Interesting. I wonder now my self!!


Re: Can conky show savefile use?

Posted: Sun Dec 26, 2021 8:21 pm
by HerrBert

I think so, though i don't use savefile. But i can add code for pup_rw to conkyrc like this:

Code: Select all

${color0}pup_rw ${fs_used /initrd/pup_rw}/${fs_size /initrd/pup_rw}
${fs_used_perc /initrd/pup_rw}%${alignr}${color}${fs_bar 10,189 /initrd/pup_rw}
conky.png
conky.png (41.32 KiB) Viewed 385 times

So i guess when booted with a savefile in PUPMODE=13 you should be able to add /initrd/pup_ro1 to conkyrc.
Not sure what layer it is in PUPMODE=12...


Re: Can conky show savefile use?

Posted: Sun Dec 26, 2021 9:21 pm
by HerrBert

Silly me... :oops:
In PUPMODE=12 you load a savefolder with no sizelimit but the partition your savefolder is stored at...
For a savefile in PUPMODE=13 /initrd/pup_ro1 should be the right place to look for.

EDIT:
For a savefile in PUPMODE=12 /initrd/pup_rw is the right place to look for.
If you load a savefolder it has no sizelimit but the partition your save is stored at.
The mountpoint for this partition will then be /initrd/mnt/dev_save and /initrd/pup_ro1
will be a symlink to the savefolder in psubdir when in PUPMODE=13


Re: Can conky show savefile use?

Posted: Mon Dec 27, 2021 3:13 am
by wizard

@HerrBert

using fossa64 9.5, inserted your code and works perfect.

Thanks
wizard


Re: Can conky show savefile use? SOLVED

Posted: Tue Dec 28, 2021 7:27 am
by Clarity

Hello @HerrBert

This seems like a very plausible offering to the Conky seen in FP64 and others. Seemingly covers for both Save-folders (that most people will use for its obvious benefit) as well as save-files.

I wonder if you feel as I do; namely that this additional Conky field offers insight into the space available-used for Session-Saves, thus a name that would resonate with all users would be "Save- space" or "Save-session" or "Saves/Changes" or something a little more insightful than pup_rw.

Is this reasonable for most users "at a glance"?


Re: Can conky show savefile use? SOLVED

Posted: Tue Dec 28, 2021 10:25 am
by HerrBert
Clarity wrote: Tue Dec 28, 2021 7:27 am

Hello @HerrBert

This seems like a very plausible offering to the Conky seen in FP64 and others. Seemingly covers for both Save-folders (that most people will use for its obvious benefit) as well as save-files.

I wonder if you feel as I do; namely that this additional Conky field offers insight into the space available-used for Session-Saves, thus a name that would resonate with all users would be "Save- space" or "Save-session" or "Saves/Changes" or something a little more insightful than pup_rw.

Is this reasonable for most users "at a glance"?

The code i posted was just to answer wizard's question, if conky can show savefile usage.

Depending on where a user installs his Puppy, using savefolder is not an option.
On fat formatted usb drives or ntfs windows partitions you have no choice.
It also depends on the PUPMODE booted to, respectively which pmedia parameter is given at boot.
That's 2^2 possible options to configure this one entry.
The name is optional anyway.
In German a meaningful name would be "persönliche Speicherdatei" <=> "personal storage" but it's to long.


Re: Can conky show savefile use? SOLVED

Posted: Tue Jan 04, 2022 1:57 am
by wizard

@HerrBert

Thought I'd give you some feedback on using your code.

Installed to 5gb USB flash ext3 partition. Readings taken from freememapplet in the JWM taskbar and from conky after fresh boot.

save folder
freememapplet
4.7gb personal storage
3.9gb free space

conky
623mb/3.83gb

save file 512mb ext3
freememapplet
487mb personal storage
386mb free space

conky
623mb/3.83gb

Seems most accurate for the save folder. Think this confirms your message above.

Thanks again
wizard