You are not logged in.
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
Offline
You can set the position using per-app settings of openbox in rc.xml.
Website: andrwe.org
Repository: repo.andrwe.org/<archtiecture>
Offline
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.
Offline
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.
Website: andrwe.org
Repository: repo.andrwe.org/<archtiecture>
Offline
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
Website: andrwe.org
Repository: repo.andrwe.org/<archtiecture>
Offline
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.
Offline
pyther this is how I got it to work.
#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
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>
Website: andrwe.org
Repository: repo.andrwe.org/<archtiecture>
Offline
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)
Offline