12

I'm using Conky on Ubuntu 17.10 to display system informations on my desktop.

My computer has 2 monitors and I would like to move Conky to the 2nd one that is on the right, but I haven't found any informations on how I can perform that.

Here is a screen of my desktop:

enter image description here

Any help would be most welcome!

pomsky
  • 70,557
Mooncake
  • 924

4 Answers4

32

use xinerama_head config as suggested in this issue discussion

xinerama_head = 2,

try with different number 1, 2

You might also want to use alignment so that conky widget appears not cropped by screen border

alignment = {top|middle|bottom}_right
Tun
  • 526
8

I finally managed to move the Conky widget to the second monitor using negative values for the horizontal gap (-1920) after choosing Bottom Right in Conky Manager. And now my desktop looks like this:

Ubuntu desktop with Conky on a different monitor than the principal one

If anyone has a better solution I would consider choosing it as the accepted answer.

Mooncake
  • 924
2

You can completely disable conky's alignment by setting alignment = none and put absolute gap_x and gap_y values. This will allow widget positioning at any place without weird negative shifting.

As an example: to put a 200px wide widget in the right top corner of the right monitor, calculation will be simple:

gap_x = <left_monitor_width> + <right_monitor_width> - <widget_width>

In my case:

gap_x = 1680 + 1680 - 200 = 3160

and the config will look next:

conky.config = {
    ...
    alignment = none,
    gap_x = 3160,
    gap_y = 0,
    ...
}
yrtimiD
  • 201
0

After editing and saving the Conky config file, it worked on my main screen on a dual-screen setting.

This is what I used on a 1920*1080(16:9) screen.

alignment = 'top_right',
gap_x = 0,
gap_y = 33,