https://worms2d.info/?title=User:Byte/Wine_tricks&feed=atom&action=history
User:Byte/Wine tricks - Revision history
2024-03-29T06:23:38Z
Revision history for this page on the wiki
MediaWiki 1.26.3
https://worms2d.info/?title=User:Byte/Wine_tricks&diff=4774&oldid=prev
Byte at 14:10, 9 September 2007
2007-09-09T14:10:29Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 14:10, 9 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22" >Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> if [ "$WIDTH" = "$FULL_WIDTH" ]; then</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> if [ "$WIDTH" = "$FULL_WIDTH" ]; then</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> echo Moving window to full size position</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> echo Moving window to full size position</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> xlayout --set --name "Wine desktop" --geometry "${FULL_WIDTH}x${FULL_HEIGHT}${FULL_POS_X}${FULL_POS_Y}"</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> xlayout --set --name "Wine desktop" --geometry <ins class="diffchange diffchange-inline">\</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>"${FULL_WIDTH}x${FULL_HEIGHT}${FULL_POS_X}${FULL_POS_Y}"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> elif [ "$WIDTH" = "$NORMAL_WIDTH" ]; then</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> elif [ "$WIDTH" = "$NORMAL_WIDTH" ]; then</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> echo Moving window to normal size position</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> echo Moving window to normal size position</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> xlayout --set --name "Wine desktop" --geometry "${NORMAL_WIDTH}x${NORMAL_HEIGHT}${NORMAL_POS_X}${NORMAL_POS_Y}"</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> xlayout --set --name "Wine desktop" --geometry <ins class="diffchange diffchange-inline">\</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>"${NORMAL_WIDTH}x${NORMAL_HEIGHT}${NORMAL_POS_X}${NORMAL_POS_Y}"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td></tr>
</table>
Byte
https://worms2d.info/?title=User:Byte/Wine_tricks&diff=4773&oldid=prev
Byte at 13:36, 9 September 2007
2007-09-09T13:36:53Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 13:36, 9 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l41" >Line 41:</td>
<td colspan="2" class="diff-lineno">Line 41:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This will move the WA window to the top left in the exact position needed to see everything, and then move it back again when the game is over!</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This will move the WA window to the top left in the exact position needed to see everything, and then move it back again when the game is over!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>You'll need to modify the normal/full size and position values yourself.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>You'll need to modify the normal/full size and position values yourself.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><pre>killall _xlayout_wine &>/dev/null; _xlayout_wine &</pre></ins></div></td></tr>
</table>
Byte
https://worms2d.info/?title=User:Byte/Wine_tricks&diff=4772&oldid=prev
Byte: New page: (My screen resolution is 1024x768 and the available space after title bar/gnome panels is 1024x675.) Set your wine desktop resolution to the maximum available space (you'll need to experi...
2007-09-09T13:35:24Z
<p>New page: (My screen resolution is 1024x768 and the available space after title bar/gnome panels is 1024x675.) Set your wine desktop resolution to the maximum available space (you'll need to experi...</p>
<p><b>New page</b></p><div>(My screen resolution is 1024x768 and the available space after title bar/gnome panels is 1024x675.)<br />
<br />
Set your wine desktop resolution to the maximum available space (you'll need to experiment - WA handles variable height but is picky about width).<br />
<br />
Get [http://freshmeat.net/projects/xlayout/ xlayout] and run this script just before running WA:<br />
<pre>#!/bin/bash<br />
FULL_WIDTH=1024<br />
FULL_HEIGHT=675<br />
FULL_POS_X=-1<br />
FULL_POS_Y=+0<br />
NORMAL_WIDTH=640<br />
NORMAL_HEIGHT=480<br />
NORMAL_POS_X=+144<br />
NORMAL_POS_Y=+112<br />
LAST=0<br />
LOST=0<br />
while true; do<br />
DATA="`xlayout --show --name "Wine desktop"`"<br />
if [ $? -eq 0 ]; then<br />
WIDTH="`echo "$DATA"|grep "Window Width:"|awk '{print $3}'`"<br />
if [ "$WIDTH" != "$LAST" ]; then<br />
if [ "$WIDTH" = "$FULL_WIDTH" ]; then<br />
echo Moving window to full size position<br />
xlayout --set --name "Wine desktop" --geometry "${FULL_WIDTH}x${FULL_HEIGHT}${FULL_POS_X}${FULL_POS_Y}"<br />
elif [ "$WIDTH" = "$NORMAL_WIDTH" ]; then<br />
echo Moving window to normal size position<br />
xlayout --set --name "Wine desktop" --geometry "${NORMAL_WIDTH}x${NORMAL_HEIGHT}${NORMAL_POS_X}${NORMAL_POS_Y}"<br />
fi<br />
fi<br />
LAST="$WIDTH"<br />
LOST=10<br />
else<br />
LOST=$(($LOST + 1))<br />
if [ $LOST -ge 10 ]; then<br />
exit 0<br />
fi<br />
fi<br />
sleep 2<br />
done</pre><br />
<br />
This will move the WA window to the top left in the exact position needed to see everything, and then move it back again when the game is over!<br />
You'll need to modify the normal/full size and position values yourself.</div>
Byte