linux:lxde

# LXDE Window Manager

Note: This is from a few years ago (@ 2010 perhaps). I'm not sure if it's still necessary, and I no longer have two monitors.

I have a dual monitor setup with two different monitor sizes. Using xrandr let's me use the two monitor setup. Used LXDE's startup application process allows me to load the xrandr configuration upon startup. I'm currently starting the GUI using startx since I don't have something like gdm or kdm installed.

• First, get the names of the monitors:
$xrandr Screen 0: minimum 320 x 200, current 3280 x 1050, maximum 8192 x 8192 DVI-I-1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 480mm x 270mm 1680x1050 60.0*+ 1280x1024 75.0 60.0 1440x900 75.0 59.9 1280x960 60.0 1152x864 75.0 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 72.8 75.0 66.7 60.0 720x400 70.1 DVI-I-2 connected 1600x900+1680+0 (normal left inverted right x axis y axis) 443mm x 249mm 1600x900 60.0*+ 1280x1024 60.0 1440x900 59.9 1280x720 60.0 1024x768 60.0 800x600 60.3 640x480 60.0 720x400 70.1 • Second, save in a shell script called 'dual.sh' in$HOME/bin:
#!/bin/sh
xrandr --output DVI-I-1 --mode 1680x1050
xrandr --output DVI-I-2 --mode 1600x900
xrandr --output DVI-I-1 --left-of DVI-I-2
• Third, save as a LXDE startup application (I may have extraneous lines in this. Can't remember where I saw how to do this kind of start up script. Still learning LXDE):
$cd$HOME/.config/autostart/
\$ nano xrandr-autostart.desktop
[Desktop Entry]
Encoding=UTF-8
Name=xrandr autostart
Comment=start xrandr with settings
Exec=/home/sean/bin/dual.sh
OnlyShowIn=LXDE
linux/lxde.txt · Last modified: 2015/12/09 11:55 by seanburns