💾 Archived View for tilde.pink › ~ssb22 › setup.gmi captured on 2022-04-29 at 11:46:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

➡️ Next capture (2023-01-29)

-=-=-=-=-=-=-

Low-vision X11 configuration

I use one of two approaches, depending on the circumstances:

1. Low-resolution scrollable desktop

2. High-resolution non-scrollable desktop with larger fonts

WINE

If you run Windows programs using WINE, you can change the overall size by adjusting the DPI setting LogPixels in .wine/system.reg (its value is hex). In newer versions you can also use the winecfg program’s “Graphics” tab to set DPI. 

If some characters in menus etc don’t display, then you might also need to set IconFont in .wine/user.reg. For example, to set it to WenQuanYi Micro Hei, add:

[ControlPanel\\Desktop\\WindowMetrics] “IconFont”=hex:a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57,0,65,0,6e,0,51,0,75,0,61,0,6e,0,59,0,69,0,20,0,4d,0,69,0,63,0,72,0,6f,0,20,0,48,0,65,0,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

If you need a dark background in WINE apps you can try appending this dark background registry snippet to .wine/user.reg (here’s a Unicode .reg version in case you want that scheme on real Windows: works on XP but a restart might be required). If you want anti-aliasing (and don’t already have it), try this antialiasing registry snippet also (this sets greyscale anti-aliasing; ClearType is not recommended unless you can calibrate the gamma setting to your monitor).

dark background registry snippet

Unicode .reg version

antialiasing registry snippet

If you use the “Wineskin Winery” wrapper on an old Mac, the .reg files will be located in your application’s Contents/Resources directory. 

If those colour changes cause unreadable text in printouts, you might need to delete the relevant colour commands from the PostScript, e.g. if you’re using a machine behind a firewall that runs CUPS and you have administrator access then go to http://localhost:631 and Add Printer, device LPD/LPR printer, URI socket://localhost:12000, make Generic / Generic PostScript printer; before printing to this printer do

nc -l -p 12000 | grep -v "^1.00 1.00 0.00 setrgbcolor$" | grep -v "^0.89 setgray$" | ps2pdf - output.pdf (may need adjusting for some CUPS/Wine versions). Alternatively if you don’t have root access but have compiled your own WINE, you can temporarily disable accidental printing by moving wineps* out of lib/wine.

Legal

All material © Silas S. Brown unless otherwise stated. Mac is a trademark of Apple Inc. PostScript is a registered trademark of Adobe Systems Inc. Unicode is a registered trademark of Unicode, Inc. in the United States and other countries. Windows is a registered trademark of Microsoft Corp. Any other trademarks I mentioned without realising are trademarks of their respective holders.