Re: [i3] problems getting a status bar on both displays with dual monitors

  • From: Jeff Jibson <jeff@xxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Wed, 27 Oct 2010 22:59:26 -0600

On Fri, Oct 1, 2010 at 09:13, Jeff Jibson <jeff@xxxxxxxxxx> wrote:

I am trying to get a status bar on both displays.  I want to them
docked if possible.  Any suggestions?


When I tried:

   exec conky -c ~/.i3/status-dzen2.conkyrc | i3-wsbar -c "dzen2
-dock -ta r -xs 1" --output-on LVDS1
   exec conky -c ~/.i3/status-dzen2.conkyrc | i3-wsbar -c "dzen2
-dock -ta r -xs 2" --output-on VGA1
or
   exec conky -c ~/.i3/status-dzen2.conkyrc | dzen2 -dock -ta r -xs 1
   exec conky -c ~/.i3/status-dzen2.conkyrc | dzen2 -dock -ta r -xs 2

It displays the status bars for VGA1 correctly on the bottom.  It
displays the dzen2 bar for LVDS1 on VGA1 at what looks like 768
pixels.



It appears this is only a problem when running a screen above or below.

I have this in my .xinitrc:

MON="$(xrandr | grep ' connected' | grep -v LVDS1 | cut -f1 -d' ')"
RES="$(xrandr | grep -A1 """$MON connected""" | tail -1 | cut -f4 -d' ')"
if [ $MON ] ; then xrandr --output LVDS1 --mode 1366x768 --primary
--output $MON --mode $RES --left-of LVDS1 ; fi

This will works. But, if I have --above (or --below) instead of
--left-of it doesn't.

Is this a bug with i3 or randr 1.3?


My laptop has the built in display (LVDS1) and above it an external
monitor (VGA1) with an Intel GMA 4500MHD GPU :

Screen 0: minimum 320 x 200, current 1680 x 1818, maximum 8192 x 8192
VGA1 connected 1680x1050+0+0 (normal left inverted right x axis y
axis) 408mm x 306mm
  1680x1050      60.0*+
...
LVDS1 connected 1366x768+0+1050 (normal left inverted right x axis y
axis) 256mm x 144mm
  1366x768       60.0*+
...


Other related posts: