Can conky show savefile use? SOLVED

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Can conky show savefile use? SOLVED

Post by wizard »

Thought it might be useful.

wizard

Last edited by wizard on Tue Dec 28, 2021 3:07 am, edited 1 time in total.

Big pile of OLD computers

User avatar
rockedge
Site Admin
Posts: 6538
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2745 times
Been thanked: 2619 times
Contact:

Re: Can conky show savefile use?

Post by rockedge »

Interesting. I wonder now my self!!

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Can conky show savefile use?

Post 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 380 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...

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Can conky show savefile use?

Post 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

Last edited by HerrBert on Mon Dec 27, 2021 10:42 am, edited 2 times in total.
User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: Can conky show savefile use?

Post by wizard »

@HerrBert

using fossa64 9.5, inserted your code and works perfect.

Thanks
wizard

Big pile of OLD computers

Clarity
Posts: 3823
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1621 times
Been thanked: 521 times

Re: Can conky show savefile use? SOLVED

Post 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"?

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Can conky show savefile use? SOLVED

Post 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.

User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: Can conky show savefile use? SOLVED

Post 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

Big pile of OLD computers

Post Reply

Return to “Users”