Friday, December 11, 2015

Move X Window by Pid

 ## Arg 1 - Pid of window to move.
 ## Arg 2 - X-Coord.
 ## Arg 3 - Y-Coord. 
function move_win() { 
 xdotool windowmove $(wmctrl -lp | grep ${1} | cut -d' ' -f1) ${2} ${3}
} 

E.g. $> move_win $(pidof zenity) 0 0 

No comments:

Post a Comment