Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Mar 2019, 04:37
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to add a graphic display of swap usage to Conky?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
pp4mnklinux


Joined: 23 Aug 2013
Posts: 308

PostPosted: Mon 21 Jan 2019, 12:44    Post subject:  How to add a graphic display of swap usage to Conky?  

Hello everybody:

I'm using conky in my computer, and I have it configured as I want, but I wanna include a graphic to show the swap usage.

What code must I wrote at conky.rc to do this??

THANKS A LOT
image-3.jpg
Description 
jpg

 Download 
Filename  image-3.jpg 
Filesize  155.42 KB 
Downloaded  37 Time(s) 
Back to top
View user's profile Send private message 
pp4mnklinux


Joined: 23 Aug 2013
Posts: 308

PostPosted: Mon 21 Jan 2019, 13:53    Post subject: proposed solution
Subject description: TESTING
 

${color #666BEA}SWAP${goto 48}${swapmax}${goto 110}${if_match "${swapperc}" != "No swap"}${swapperc}%${else}0%${endif}${alignr 128}${swapbar}
image-1.jpg
 Description   
 Filesize   80.73 KB
 Viewed   95 Time(s)

image-1.jpg


_________________
Distro: xenialpup64 7.5 XXL
Desktop Panel: JWM ~ FbBox 5.0
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3765
Location: holland

PostPosted: Thu 24 Jan 2019, 11:53    Post subject:  

Not sure if you found already how you like it, but I'd say just experiment with different combinations, e.g. this (removed the "goto" from your examlpe):
Code:
${color #666BEA}SWAP ${swapmax}${if_match "${swapperc}" != "No swap"}${swapperc}% ${else}0% ${endif}${swapbar}


Or more simple (dispaying total swap also):
Code:
${color #666BEA}SWAP: $swapperc% $swap/ $swapmax ${swapbar}


Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
pp4mnklinux


Joined: 23 Aug 2013
Posts: 308

PostPosted: Mon 28 Jan 2019, 14:08    Post subject: thanks fred
Subject description: THANKY
 

thanks a lot
_________________
Distro: xenialpup64 7.5 XXL
Desktop Panel: JWM ~ FbBox 5.0
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0270s ][ Queries: 13 (0.0042s) ][ GZIP on ]