You are not logged in.

#1 2009-12-04 04:05:59

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Dual Monitors - Openbox - Conky on Singe Screen?

Hello

I currently have a conky config that I would like it centered only monitor A.
Currently openbox is centering it based on the width of monitor A and B.

Here is a screenshot: http://pyther.net/a/dual_monitor_conky.png

How can I get the conky config to only use the width of the first monitor?

Also I would like to get trayer (system tray) on the first monitor as well. Is this possible?

Thanks in advance


Website - Blog - arch-home
Arch User since March 2005

Offline

#2 2009-12-04 07:18:43

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

You can set the position using per-app settings of openbox in rc.xml.

Offline

#3 2009-12-04 12:23:06

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

Andrwe wrote:

You can set the position using per-app settings of openbox in rc.xml.

Can you give an example or link to some documentation. I was looking for information, but wasn't quite able to get anything to work.


Website - Blog - arch-home
Arch User since March 2005

Offline

#4 2009-12-04 12:57:10

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

link:
http://icculus.org/openbox/index.php/Help:Applications

example:

<application name="Conky">
      <decor>no</decor>
      <desktop>all</desktop>
      <layer>above</layer>
      <skip_taskbar>yes</skip_taskbar>
</application>

This set up each window which has set class "Conky" to be shown on all desktops, above all other windows, without decoration and not shown in the taskbar.

Offline

#5 2009-12-04 13:08:28

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

I fail to see how this will help me get conky on the first monitor of my twinview setup.


Website - Blog - arch-home
Arch User since March 2005

Offline

#6 2009-12-04 14:28:08

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

Set the class of your conky to a unique one there is an option for it.
Then add a per-app section for the class you've set and use <monitor>1</monitor> within the section position.

See this example rc.xml there is a good explanation at the end for per-app settings:
http://git.icculus.org/?p=mikachu/openb … .4-working

Offline

#7 2009-12-04 14:37:51

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

Hmm okay.

I tried this and it did not work. I tried monitor 0, 1, 2 but all the instances started up where the mouse was and not what was in <monitor>.

However the skip_taskbar, layer, and other settings take affect.


Website - Blog - arch-home
Arch User since March 2005

Offline

#8 2009-12-04 15:11:28

M177ER
Member
Registered: 2008-06-15
Posts: 148

Re: Dual Monitors - Openbox - Conky on Singe Screen?

pyther this is how I got it to work.
tMnd4Yw

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no
border_margin 1

#shades
draw_shades no

#position
gap_x 3
gap_y 1
alignment top_left

#behaviour
update_interval 1

#colour
default_color 9f907d

#default_shade_color 000000
own_window_colour 303030

#font
use_xft yes
xftfont Sans:pixelsize=10:Bold

#to prevent window from moving
use_spacer none
minimum_size 1273 30

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}${voffset 9}Kernel: ${color D7D3C5}$kernel   |  ${time %d %B} ${color D7D3C5}${time  %H:%M}  |  ${color} Up: ${color D7D3C5}${uptime_short}   |   ${color}Processes: ${color D7D3C5}$processes  ${color}Running: ${color D7D3C5}$running_processes   |  ${color}Cpu1: ${color D7D3C5}${cpu cpu1}% @ ${freq_g 1} GHz   ${color}${cpugraph 10,80 AEA08E 9F907D} ${color D7D3C5}    |  ${color}Cpu2: ${color D7D3C5}${cpu cpu2}% @ ${freq_g 2} GHz   ${color}${cpugraph 10,80 AEA08E 9F907D} ${color D7D3C5}    |   ${color }Mem: ${color D7D3C5}$mem/$memmax - $memperc%

Offline

#9 2009-12-04 16:00:07

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

pyther wrote:

Hmm okay.

I tried this and it did not work. I tried monitor 0, 1, 2 but all the instances started up where the mouse was and not what was in <monitor>.

However the skip_taskbar, layer, and other settings take affect.

But you've set it within <position> and like described in the example with either <x> or <y> tag?
e.g.:
<position>
  <y>0</y>
  <monitor>1</monitor>
</position>

Offline

#10 2009-12-04 18:52:39

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

As so, right?

    <application class="Gcalctool">
      <decor>no</decor>
      <desktop>all</desktop>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <position>
        <y>0</y>
        <monitor>2</monitor>
      </position>
    </application>

If that is the case, it doesn't work, I've tried monitor 0, 1, 2 with all appearing on the same monitor. However it skip the taskbar, has decors, etc...

Last edited by pyther (2009-12-04 18:53:27)


Website - Blog - arch-home
Arch User since March 2005

Offline

#11 2009-12-04 19:53:52

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Dual Monitors - Openbox - Conky on Singe Screen?

Well it seem to work if both X and Y are specifed, however conky nor trayer seem to want to take to these settings


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB