Wednesday, August 17, 2011

how to persist a connection?


then open a screen session
create new window
^-a c
then split window
^-a S ## capitol S
move to other window
^-a tab
grab the window to the frame
^-a "shift+'" and select a window to place there
then make a busy application
wait -n 10 date
will create a very busy application with connection

How to do screen within screen???
^-a then a regular a

Sunday, August 7, 2011

windws focus follows mouse registry hacks

inportant information i keep losing.

1. Run regedit (Win+R, regedit, OK)
2. Open up the key HKEY_CURRENT_USER\Control Panel\Mouse
3. Change the value of the REG_DWORD ActiveWindowTracking to 0×0000001 (1)

4. Open up the key HKEY_CURRENT_USER\Control Panel\Desktop
5. Add 1 to the MSB (most significant byte) of the REG_BINARY UserPreferencesMask. That is, if the current value is 00 3e 03 80 12 00 00 00, then change it to 01 3e 03 80 12 00 00 00. If you used the GUI as above, the MSB will be 41 (which brings the focused window to the front as well), so change it back to 01.

6. To make the focus a little slower, so that pop-up windows are useable, you also want to change the focus timing. Change the REG_DWORD ActiveWindTrkTimeout (also in HKEY_CURRENT_USER\Control Panel\Desktop) to the number of milliseconds to wait before focus shifts to the window under the mouse. I like a value of 0×00000080 (128ms). You might like 200ms (c8), or some faster or slower value.

So, in summary, the Registry keys are as follows for X11-like window focus:

HKEY_CURRENT_USERS\Control Panel\Mouse
REG_DWORD ActiveWindowTracking = 0x00000001 (1)

HKEY_CURRENT_USERS\Control Panel\Desktop
REG_DWORD ActiveWindTrkTimeout = 0x00000080 (128)
REG_BINARY UserPreferencesMask = 01 .. .. .. .. .. .. .. ..