Code: Select all
<Desktops width="2" height="1">
<Desktop><Background type="command">/usr/bin/resHI</Background></Desktop>
<Desktop><Background type="command">/usr/bin/resLO</Background></Desktop>
</Desktops>
/usr/bin/resHI (and resLO) are just scripts I created (and made executable) in the /usr/bin folder
xrandr shows what resolutions your card/system supports, so for mine my resHI looks like
#!/bin/bash
xrandr --output VGA2 --mode 1024x768 --rate 60
and resLO looks like
#!/bin/bash
xrandr --output VGA2 --mode 800x600 --rate 60.3
You'll have to set the output, mode and rate according to your own system
Now when on desktop 1 I'm in 1024x768 mode and drag across to desktop 2 (the right) or switch desktops and it switches to 800x600 resolution. For me that's handy when using Softmaker/FreeOffice as the fonts are too small for comfort in 1024x768, but much clearer in 800x600. i.e normal typing/running is OK under 1024x768, but then when it comes to open or save the open file dialog text is too small for comfort, so drag that dialog to the right (into desktop 2) and its much easier to see.
(EDIT : PS, if I load nvidia resolution changing using xrandr stops working, so mileage may vary)