Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an external display that show the right part of my screen (--right-of option in xrandr),

And my conky panel was just gone. (occupies space, but not visible on both display)

What I want is the same view of conky, for both my laptop display and the external one, any thoughts?


Part of my conkyrc, might be helpful

own_window yes 
if_up_strictness address
own_window_colour 262729
own_window_transparent no 
own_window_type panel
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right 
use_xft yes
font snap.se-7
xftalpha 1
text_buffer_size 2048 
#alignment tl
alignment bl
gap_x 0
gap_y 3
share|improve this question

There are a lot of solutions to do it, The gap_x and gap_y is the worst one. The set the display ability is much more complicated. I also have an external monitor on a laptop.

My conky config files are in the startup list and they look like this. I use Ubuntu 12.04:

bash -c "sleep 30; conky -c conky1 -a top_right -x 7 -y 70 -d"

bash -c "sleep 30; conky -c conky2 -a top_left -x 150 -y 550 -d" 

gap_x and gap_y in both files are set to 1. Using relative coordinates will always output in the same place.

From terminal : conky -c conky1 -a top_right -x 7 -y 70 -d

I do not have to reset the value of gap-x or y everytime I boot with a secondary display.

enter image description here dual monitor conky

share|improve this answer
beautiful! it worked great in my Ubuntu 14.04. – logoff Aug 7 '14 at 7:47

I believe, this will also place the element on the right on various monitors. Even if you find the value for the gap_x variable to work on your 17" monitor, it will not work on another one with a different rezolution, say of 21".

share|improve this answer

Get the mouse position coordinates with xdotool

xdotool getmouselocation --shell

Just immediately get the coordinates, maybe you need time to move to a specified location

sleep 3 ;xdotool getmouselocation --shell

Use your mouse to move the stone side of the coordinates you want to show where conky

X=1920 Y=266 SCREEN=0 WINDOW=27263065

So this execution, the first to eat conkyrc settings (including coordinates ), and the second will be displayed on the right side at coordinates 1920

conky -x 1920
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.