>________________________________
> De : W Wlourf <[email protected]>
>À : "[email protected]" <[email protected]> 
>Envoyé le : Vendredi 6 avril 2012 10h07
>Objet : rules for Gimp-dock windows
> 
>
>Hi all, 
>
>
>
>
>
>I have a 3-monitors configuration and whith Gimp, I can't set the position of  
>the "Layer Dock" where I wan't (on the second screen). With this code it works 
>with the Toolbox window but not with the "Layers windows" :
>
>
>    { rule = { name = "Toolbox" },
>        properties = { 
>            tag = tags[2][4],
>            floating = true,
>            switchtotag = true,
>            x = 400,
>            y = 100,
>   
        width = 250,
>            ontop=true
>        
>        }
>    },
>   
>        { rule = { name = "Layers" },
>        properties = { 
>            tag = tags[2][4],
>            floating = true,
>            switchtotag = true,
>            x = 600,
>            y= 100,
>            width = 250,
>            ontop=true
>       
}
>    } ,
>    
>    { rule = { name = "GNU Image Manipulation Program"},
>        properties = { 
>        tag = tags[3][4]  ,
>        floating = true,
>        switchtotag = true,
>        }
>    }
>
>
>
>
>In Gimp's Preferences, I set the hint for the toolbox and for the docks to 
>"Normal window" but when I run xprop :
>on the toolbox , I get this :
>WM_WINDOW_ROLE(STRING) = "gimp-toolbox"
>
>on the layer window, I get this :
>WM_WINDOW_ROLE(STRING) = "gimp-dock"
>
>
>
>Any help is welcome !

Here is a workaround I finally used, I run gimp with this script :


#!/bin/bash

gimp &
while true; do 
        win=`wmctrl -l | grep Layers`
        if [[ $win != "" ]]; then 
                echo "ok"
                break
        fi
        sleep 1s
done
wmctrl -r Layers -e 0,2200,100,250,900

--
To unsubscribe, send mail to [email protected].

Reply via email to