On Thu, Sep 27, 2007 at 12:44:32PM -0400, Nguyen, Cuong K. wrote: > >> You're probably right that the DISPLAY is always :0.0. You need another >> way to toggle between 0 and 1. Try this: >> >> #!/bin/bash >> swfile=/tmp/sw-file >> if [ ! -f $swfile ]; then echo 0 > $swfile ; fi >> echo $(( ! `cat $swfile` )) > $swfile >> echo exec switchscreen `cat $swfile` >> >> Note that I just echo-ed the command because I don't have switchscreen >> installed. The $(( ... )) syntax allows you to evaluate mathematical >> expressions. Read "man bash" >> >> HTH >> > Works perfectly! Thanks HTH :)
Cuong, I'm curious, running dual-screen myself, about your setup. I am running xinerama and that combines my two screens into one large one. The mouse flows effortlessly from one to the other. I find it works very well with a tiling WM (wmii here) and just love it. What do you find to be the advantages/disadvantages to have two truly separate screens? A
signature.asc
Description: Digital signature