Use several Conky's at the same time

Conky It is an interesting tool that helps us to monitor our system (among other things) and although I have not used it for a long, long time (since it has lost consciousness, at least for me), I loved it for being a simple application that consumes few resources.

Normally when we run and configure Conky, We only use a single instance but what if we want to use several? As you can see in the following image, for example:

Conky_multiple

Let's see how to do it. For this we have to create several files, 3 in this case:

  1. .conkyrc_mail for email notification
  2. .conkyrc_system for system information
  3. .conkyrc_time for the clock on the desk
I adapted this post from a old item from my old blog. The scripts may no longer work, but the intention is to show how to run multiple instances of Conky at the same time

We create a folder called .conky in our / home.

$ mkdir ~/.conky

Then we open a terminal as and as root we create a file in / usr / local / bin with the name start_conky:

$ sudo touch /usr/local/bin/start_conky

and we put the following inside:

#! / bin / bash conky -c /home/your_user/.conky/.conkyrc_system & conky -c /home/your_user/.conky/.conkyrc_time & conky -c /home/your_user/.conky/.conkyrc_mail &

Now what we have left is to give it permissions:

$ sudo chmod a + x / usr / local / bin / start_conky $ sudo chown root: staff / usr / local / bin / start_conky

But it may happen that Conky starts up before the Desktop finishes loading and disappears. To solve this we create a file in the path /home/tu_usuario/.config/autostart under the name conky_start (it is a different name from the file created in / usr / local / bin) and we put it inside:

#! / bin / bash sleep 15 start_conky exit 0

We can change the value Sleep 15 depending on the time it takes to load our desktop.

So far the relevant part of this article. If you want to copy the scripts used for the previous example, keep reading.

.conkyrc_mail

For this to work we have to use a script that can find here!.
# Use Xft? use_xft yes xftfont DejaVu Sans: size = 8 xftalpha 0.8 text_buffer_size 2048 # Update interval in seconds update_interval 1 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_transparent yes own_window_type override #own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager # Use double buffering (reduces flicker, may not work for everyone #) Minimum double_buffer size of text area minimum_size 200 0 #maximum_width 200 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 0 # border margins border_margin 5 # border width border_width 1 # Default colors and also border colors default_color white #default_shade_color black #default_outline_color white own_window_colour white # Text alignment, other possible values ​​are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right Gap between borders of screen and text # same thing as passing -x at command line gap_x 35 gap_y 40 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 1 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale yes # Add spaces to keep things from moving about? This only affects certain objects. use_spacer none TEXT $ {alignr} $ {font} $ {execi 600 conkyEmail –servertype = IMAP –servername = 192.168.200.2 –username = your user –password = tupassword –ssl –connectiontimeout = 51} $ {font} Message (s)

.conkyrc_time

# Use Xft? use_xft yes xftfont DejaVu Sans: size = 8 xftalpha 0.8 text_buffer_size 2048 # Update interval in seconds update_interval 1 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_transparent yes own_window_type override #own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager # Use double buffering (reduces flicker, may not work for everyone #) Minimum double_buffer size of text area minimum_size 200 0 #maximum_width 200 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 0 # border margins border_margin 5 # border width border_width 1 # Default colors and also border colors default_color white #default_shade_color black #default_outline_color white own_window_colour white # Text alignment, other possible values ​​are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right #alignment bottom_left #alignment bottom_right Gap between borders of screen and text # same thing as passing -x at command line gap_x -40 gap_y 679 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 1 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale yes # Add spaces to keep things from moving about? This only affects certain objects. use_spacer none TEXT $ {alignc 35} $ {font Arial Black: size = 26} $ {time% H:% M} $ {font} $ {alignc} $ {time% A% d% Y}

.conkyrc_system

# Use Xft? use_xft yes xftfont DejaVu Sans: size = 8 xftalpha 0.8 text_buffer_size 2048 # Update interval in seconds update_interval 1 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_transparent yes own_window_type override #own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager # Use double buffering (reduces flicker, may not work for everyone #) Minimum double_buffer size of text area minimum_size 200 0 #maximum_width 200 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 0 # border margins border_margin 5 # border width border_width 1 # Default colors and also border colors default_color 2a2a2a own_window_colour white # Text alignment, other possible values ​​are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text # same thing as passing -x at command line gap_x 800 gap_y 690 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 1 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale yes # Add spaces to keep things from moving about? This only affects certain objects. use_spacer none TEXT $ {font} CPU: $ {cpu cpu1}% $ {alignr 60} $ {cpubar cpu1 8,60} $ {font} RAM: $ memperc% $ {alignr 60} $ {membar 8,60} $ {font} SWAP: $ swapperc% $ {alignr 60} $ {swapbar 8,60}

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

17 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.   sanhuesoft said

    Spectacular complement to the post I published about Install Conky.

    1.    elav said

      😉 In fact I published it to clarify the doubt of another user. I'm not sure if the settings still work as I used them a long, long time ago.

  2.   daniel said

    Why do you say it doesn't make sense to use it?

    regards

    1.    elav said

      Well, because it seems silly to me to have to minimize all the windows to go to the desktop to see some other statistics. For the rest, it is another application running for fun. But it is my way of seeing it, there are people who only use it for beauty. I already passed that stage .. 😀

      1.    Leo said

        Did you pass that stage? Great, so you went back to XFCE !!!
        Ha, I'm kidding. I never installed it for the same reason.

      2.    debish said

        When I used it on the desktop with Fluxbox, what I did was put it on a single line and set the size of all the windows so that they never occupied that space. That is how I always saw the information occupying very little screen space (for a 19 ″ monitor, perhaps on a laptop this is debatable) and consuming few resources.

        I'm glad to see that this is still going smoothly, a lot of the big guys are falling lately.

        Greetings.

      3.    Marcelo said

        Respectable, but very subjective and relative your opinion. In my case, conky is essential for me to monitor the temperatures of the system (among other things that are quite far from use because of how "nice" it is). I will be eternally grateful to this little program since it has saved me a few tickets. I owe him, for example, that my graphics card has not melted. Some time ago, I noticed that the temperature of this one increased alarmingly without using any program that justifies it. Surprised, I disassembled the PC case to explore a little: I discovered then that the cooler of the graphics had clogged because of the dust. If not for Conky, I would never have figured it out in time and would have run out of GPU. Application running for fun? I do not think so.
        Minimizing all the windows and restoring them to see Conky can make me lose, at most, a couple of seconds (little sacrifice if the health of the equipment is involved and therefore my work). And if I do not want to minimize, I go to another desk and holy remedy.

        1.    Leo said

          There would have to be some way for a keyboard shortcut to send it to the front to be able to without minimizing anything.

      4.    eliotime3000 said

        For me, the GNOME 3.4 fallback interface works great for me with its order. The cuteness on the desk already bores me.

  3.   Ozkar said

    conkyEmail, conkyForecast ... are independent programs from conky. They belong to conky-companions.

  4.   enrique said

    Thanks, it worked for me

    1.    leonardo said

      WTF? Safari running on ArchLinux

      1.    eliotime3000 said

        Webkit, Webkit Everywhere.

  5.   snock said

    Well, I love having conky. Everything is controlled, ... although the time of having conkys to molones has already passed into history: P. Now I have a normal one with the typical data of the pc.

  6.   clow_eriol said

    Thank you very much for the explanation 😀

  7.   st0rmt4il said

    Thanks for the tip!

    Although with Conky GUI manual work is quite ergonomized.

    Regards!

  8.   cookie said

    Great, it has helped me a lot.