8

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!

3
  • Hold down the alt key. Right click on the Conky window and drag it anywhere. Or maybe its left click--I'm on my phone. Bonus; if you put a desktop shortcut on your right monitor to open Conky it activates there in the first place. Oct 17 '17 at 12:18
  • 1
    Are you sure it's actually possible to drag the Conky Window ? I tried alt + right or left click while Conky Manager is open and it doesn't move.
    – egdavid
    Oct 17 '17 at 16:14
  • 1
    It could be I use a different window type than you. I'll have to check it when I get home and get back to you. Oct 17 '17 at 17:08
20

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
7

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.

1

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,
    ...
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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