I use this method. it's not perfect but works for me.

have two rc config in ~/.config/awesome, one is rc.dualhead (for two
monitor), one is rc.singlehead. the only difference is for dual head, you
can specify Class/Name application been put in tags[2][x]. [2] is the
second monitor.

diff rc.dualhead rc.singlehead
399c399
<       properties = { tag = tags[2][8] } },
---
>       properties = { tag = tags[1][8] } },
401c401
<       properties = { tag = tags[2][2] } },
---
>       properties = { tag = tags[1][2] } },
403c403
<       properties = { tag = tags[2][2] } },
---
 >       properties = { tag = tags[1][2] } },
405c405

and create two bash shell : a1 and a2.

kevinrong@x220-kr:/usr/local/bin$ cat a1
cp ~/.config/awesome/rc.singlehead ~/.config/awesome/rc.lua
kevinrong@x220-kr:/usr/local/bin$ cat a2
cp ~/.config/awesome/rc.dualhead ~/.config/awesome/rc.lua

before you switch to dual monitor, enter a2, before you switch back to
laptop only, enter a1.

Kevin
On Sat, Mar 3, 2012 at 6:20 AM, Dariusz Luksza <[email protected]>wrote:

> On 03/02/12 17:42, Gabriel Lecouvreur wrote:
>
>> Hello,
>>
>> I have a small issue with awesome : I sometimes plug my laptop to an
>> external
>> screen and then issue  an xrandr command to make the new screen
>> available. Then,
>> Awesome restarts. And I am not pleased with the way it deals with clients
>> :
>> clients with no rule in my rc.lua (like my urxvt-terms) stay on the laptop
>> screen (the former main screen) and I would like them to go on the new
>> main
>> screen (while keeping their tags positions). I have searched and read
>> some old
>> threads of the mailing list, and apparently there is no way to store these
>> positions before restarting. I wonder however if it would be possible to
>> make a
>> transfer-to-mainscreen.lua (or sh) script using some awesome-client magic
>> to do it.
>>
>
> You can try screenful, it will automatically discover connected monitors
> and setup proper arrangement based on configuration
>
> [1] 
> https://github.com/dluksza/**screenful<https://github.com/dluksza/screenful>
>
> --
> Best regards
>
> GSM: +48 695 192 160
> Blog: http://luksza.org
> LinkedIn: 
> http://www.linkedin.com/in/**dariuszluksza<http://www.linkedin.com/in/dariuszluksza>
>
>
> --
> To unsubscribe, send mail to 
> awesome-unsubscribe@naquadah.**org<[email protected]>
> .
>



-- 
Kevin Rong
Network Engineer
Corporate Network Operations
Google INC
Sydney, Australia
Tel: +61-2-9374-4084

Reply via email to