On Wed, Oct 26, 2011 at 5:58 AM, Paweł Rumian <[email protected]> wrote:
> Hello,
>
> Now the things are more complicated, because sometimes I want to send
> window to left monitor, sometimes to the right one.
> Is there a simple way to achieve this, or do I need to modify the
> movetoscreen function in awful?
> I see it has the 's' parameter, but from what I see it allows only to
> pass the screen numberm not the 'direction' itself.
>
No need to modify awful, just create the relative indexing yourself.
function iter_screen(dir, scr)
return awful.util.cycle(screen.count(), (scr or client.focus.screen) + dir)
end
awful.client.movetoscreen(c, iter_screen(1))
awful.client.movetoscreen(c, iter_screen(-1))
^completely untested^
--
perry
--
To unsubscribe, send mail to [email protected].