Re: bash, xbindkeys and dual screen

2007-09-28 Thread Nguyen, Cuong K.
On 09/27/2007 06:37 PM, Andrew Sackville-West wrote: I haven't tried two distinct screens, so I can't directly compare them. I find the moving of the mouse from one screen to the other to be intuitive and natural for me, but in reality, I rarely use the mouse anymore. I probably don't need to use

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Andrew Sackville-West
On Thu, Sep 27, 2007 at 06:03:18PM -0400, Nguyen, Cuong K. wrote: > > > Now you have a sense of why I need dual-seat. What about your setup of > xinerama? What do you find it to be advantages to dual-screen? Actually I > fried xinerama before, but the mouse problem bothered me a lot so that I > s

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Nguyen, Cuong K.
On 9/27/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > > a tiling WM is a WM that "tiles" the windows. That is, the windows > don't overlap, but rather occupy as much space as possible and are > laid out on the screen like tiles. wmii is one of the many tiling > WM's. It works by assignin

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Andrew Sackville-West
On Thu, Sep 27, 2007 at 04:08:39PM -0400, Nguyen, Cuong K. wrote: > On 9/27/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > > > 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 flo

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Nguyen, Cuong K.
On 9/27/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > 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

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Andrew Sackville-West
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

Re: bash, xbindkeys and dual screen

2007-09-27 Thread Nguyen, Cuong K.
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

Re: bash, xbindkeys and dual screen

2007-09-26 Thread Mumia W..
On 09/26/2007 10:00 PM, Nguyen, Cuong K. wrote: Hi all, I have a problem - basically with some bash codes. I have dual screen and one mouse, and I want to switch my mouse back and forth from screen 1 to screen 2 etc by pressing a keyboard. In order to do that, I did the following: 1. instal

bash, xbindkeys and dual screen

2007-09-26 Thread Nguyen, Cuong K.
Hi all, I have a problem - basically with some bash codes. I have dual screen and one mouse, and I want to switch my mouse back and forth from screen 1 to screen 2 etc by pressing a keyboard. In order to do that, I did the following: 1. install switchscreen, then by typing "switchscreen 0" o