How to add a graphic display of swap usage to Conky?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
pp4mnklinux
Posts: 375
Joined: Fri 23 Aug 2013, 06:56

How to add a graphic display of swap usage to Conky?

#1 Post by pp4mnklinux »

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
Attachments
image-3.jpg
(155.42 KiB) Downloaded 51 times

User avatar
pp4mnklinux
Posts: 375
Joined: Fri 23 Aug 2013, 06:56

proposed solution

#2 Post by pp4mnklinux »

${color #666BEA}SWAP${goto 48}${swapmax}${goto 110}${if_match "${swapperc}" != "No swap"}${swapperc}%${else}0%${endif}${alignr 128}${swapbar}
Attachments
image-1.jpg
(80.73 KiB) Downloaded 111 times
Distro: xenialpup64 7.5 XXL
Desktop Panel: JWM ~ FbBox 5.0

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3 Post by fredx181 »

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: Select all

${color #666BEA}SWAP ${swapmax}${if_match "${swapperc}" != "No swap"}${swapperc}% ${else}0% ${endif}${swapbar}
Or more simple (dispaying total swap also):

Code: Select all

${color #666BEA}SWAP: $swapperc% $swap/ $swapmax ${swapbar}
Fred

User avatar
pp4mnklinux
Posts: 375
Joined: Fri 23 Aug 2013, 06:56

thanks fred

#4 Post by pp4mnklinux »

thanks a lot
Distro: xenialpup64 7.5 XXL
Desktop Panel: JWM ~ FbBox 5.0

Post Reply