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
How to add a graphic display of swap usage to Conky?
- pp4mnklinux
- Posts: 375
- Joined: Fri 23 Aug 2013, 06:56
How to add a graphic display of swap usage to Conky?
- Attachments
-
- image-3.jpg
- (155.42 KiB) Downloaded 51 times
- pp4mnklinux
- Posts: 375
- Joined: Fri 23 Aug 2013, 06:56
proposed solution
${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
Desktop Panel: JWM ~ FbBox 5.0
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):
Or more simple (dispaying total swap also):
Fred
Code: Select all
${color #666BEA}SWAP ${swapmax}${if_match "${swapperc}" != "No swap"}${swapperc}% ${else}0% ${endif}${swapbar}
Code: Select all
${color #666BEA}SWAP: $swapperc% $swap/ $swapmax ${swapbar}
- pp4mnklinux
- Posts: 375
- Joined: Fri 23 Aug 2013, 06:56