Know the more than 45 variables that you can use in Conky

Here are almost 50 variables that you can use in your configuration files. Conky, I hope this helps a lot to everyone who is always trying to optimize or improve their conky a bit 🙂

Variable Attributes Explanation
$ addr (Interface) Shows the IP of the selected interface
$ alignc Align the text to the center
$ buffers Show the buffer
$ cached Show stored cache
$ color Gives a certain color either by name or by RGB code
$ cpu (cpu #) Shows the percentage of CPU used. cpu # is the number of the CPU to display
$ cpubar Displays CPU usage as a bar. Height and width are the height and width of the bar in pixels.
$ cpugraph (height, width color1 color2) Show a graph with CPU usage. Height and width are the height and width of the graph in pixels. Color1 and color2 are the gradient colors that the graph will take, with color 1 being the most to the left and color 2 being the most to the right
$ downspeed (Interface) Displays the download speed of the selected interface
$ downspeedgraph (height, width color1 color2) It shows a graph with the download speed of the network. Height and width are the height and width of the graph in pixels. Color1 and color2 are the gradient colors that the graph will take, being color1 the one on the left and color 2 the one on the right
$ exec Execute a given command in the shell
$ font Set a certain font
$ freq Displays the microprocessor frequency (in MHz)
$ freq_g Displays the microprocessor frequency (in GHz)
$ fs_bar (height, width fs) Displays the usage of the selected fs as a bar. Height and width are the height and width of the bar in pixels. fs is the mounting point of some HDD
$ fs_free (fs) Displays the free space in the selected fs. fs is the mounting point of some HDD
$ fs_free_perc (fs) Shows the free percentage in the selected fs. fs is the mounting point of some HDD
$ fs_size (fs) Displays the total space of the selected fs. fs is the mounting point of some HDD
$ fs_used (fs) Displays the used space of the selected fs. fs is the mount point of some HDD
$ hr Show a line across the width
$ image URL To put an image that is in the URL
$ kernel Show the kernel version
$ machine Shows the PC architecture
$ mem Shows the amount of RAM memory used
$ membar (Height, wide) Shows RAM usage as a bar. Height and width are the height and width of the bar in pixels.
$ memgraph (height, width color1 color2) Shows a graph with the use of RAM. Height and width are the height and width of the graph in pixels. Color1 and color2 are the gradient colors that the graph will take, with color 1 being the most to the left and color 2 being the most to the right
$ memmax Shows the amount of RAM we have
$ memperc Shows the percentage of RAM memory used
$ nodename Displays the name of the PC
$ offset To move the text in the horizontal direction
$ processes Shows the number of processes
$ running_processes Shows the number of processes running
$ stippled_hr (#) Displays a full width dashed line. The number indicates the separation of the points
$ swap Shows the amount of SWAP used
$ swapbar (Height, wide) It shows the use of the SWAP in the form of a bar. Height and width are the height and width of the bar in pixels.
$ swapgraph (height, width color1 color2) Show a graph with the use of SWAP. Height and width are the height and width of the graph in pixels. Color1 and color2 are the gradient colors that the graph will take, with color 1 being the most to the left and color 2 being the most to the right
$ swapmax Shows the amount of SWAP we have
$ swapperc Shows the percentage of SWAP used
$ sysname Displays the name of the system type
$ time Shows everything related to the date / time (to see all attributes see man strftime)
$ top (cpu name, pid, mem, cpu #) It shows the process in the CPU according to the attribute passed to it. name, pid, mem, cpu shows the process in position # of CPU usage.
$ top_mem (cpu name, pid, mem, cpu #) Same as top, but with memory
$ totaldown (Interface) Displays the total amount of download for the selected interface
$ totalup (Interface) Shows the total upload amount of the selected interface
$ upspeed (Interface) Displays the upload speed of the selected interface
$ upspeedgraph (height, width color1 color2) It shows a graph with the upload speed of the network. Height and width are the height and width of the graph in pixels. Color1 and color2 are the gradient colors that the graph will take, with color 1 being the most to the left and color 2 being the most to the right
$ voffset To move a row in the vertical direction

6 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   ac_2092 said

    Great!!! 😀

  2.   Joaquin said

    Thank you!

  3.   fzeta said

    Great, thank you very much for sharing it (Y)

  4.   Tesla said

    This is very good. I've always wanted to start creating my own conky since I've only modified the ones I find.

  5.   frameworks said

    commands where the conky will be

    - top_right: Top right
    - top_left: Top left
    - bottom_right: Bottom right
    - bottom_left: Bottom left