tag:blogger.com,1999:blog-1580029372570359363.post5273115741917559831..comments2024-01-22T03:30:48.482-05:00Comments on Game Genus: Tech: Startup script for Minecraft under LinuxStratagermhttp://www.blogger.com/profile/16674545127540735737noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1580029372570359363.post-55000858762377767872013-06-09T18:28:29.824-04:002013-06-09T18:28:29.824-04:00Instead of doing the whole, write to a temporary f...Instead of doing the whole, write to a temporary file to run it in the background thing, here is another way to do that bit. It basically spawns a sub-shell then runs that in the background. =)<br /><br />(sleep 2 # wait for the launcher to get started<br /><br /># get the id of the launcher's window<br />window=\`xwininfo -name "Minecraft Launcher" | perl -lne 'if (/Window id:\\s(\\S+)/){print \$1;}'\`<br /><br />xdotool windowsize \$window $wid $hgt # change the window size<br />xdotool windowmove \$window $left $top # roughly re-center) &Coltonhttps://www.blogger.com/profile/09279409673515916466noreply@blogger.com