Speechcode.com https://speechcode.com/ Blog posts on Ergonomics by Arthur A. Gleckler en-US webmaster@speechcode.com (Arthur A. Gleckler) Vertical Monitor https://speechcode.com/blog/vertical-monitor https://speechcode.com/blog/vertical-monitor <article class="post vertical-monitor"><img class="hero" src="https://speechcode.com/blog/vertical-monitor/vertical-monitor.svg" title="Vertical Monitor"> <div class="metadata"> <div class="date">Tue 26 Jul 2022</div> <div class="labels"><a href="https://speechcode.com/blog/label/ergonomics">ergonomics</a>, <a href="https://speechcode.com/blog/label/scheme">scheme</a></div></div> <div class="contents"> <p>I started my computing journey on a <a href="https://en.wikipedia.org/wiki/TRS-80">TRS-80 Model I</a>, whose screen had sixty-four columns of characters in sixteen rows. It was amazing how much one could get done with such a small screen. Later, I used an <a href="https://terminals-wiki.org/wiki/index.php/Ann_Arbor_Ambassador"> Ann Arbor Ambassador</a> terminal. It could not only display much more text, but it did so in a vertical orientation. Seeing a whole function at a time made programming easier.</p> <p>As display resolution marched forward, I forgot all about vertical monitors. A few months ago, something reminded me of that Ambassador terminal, and I decided to try a modern equivalent. I splurged on a <a href="https://www.lg.com/us/monitors/lg-27un880-b-4k-uhd-led-monitor"> 27&quot; UltraFine UHD IPS USB-C HDR Monitor with Ergo Stand</a>, and rotated it to vertical. I've been in nerd heaven ever since. On that monitor, my Emacs displays 321 lines of text! That's enough to see the context of even terrible spaghetti code. And when even that is insufficient, Emacs <a href="https://www.gnu.org/software/emacs/manual/html_node/emacs/Split-Window.html"> split-window-below</a> combined with <a href="https://www.gnu.org/software/emacs/manual/html_node/emacs/Follow-Mode.html"> Follow Mode</a> shows 642 lines at once.</p> <p>Unless I'm sitting down.</p> <h2>ergonomics</h2> <p>I know many people who have had repetitive stress injuries from long hours at the keyboard, so I try hard to follow the best advice on <a href="https://en.wikipedia.org/wiki/Ergonomic_hazard#Office_ergonomics"> ergonomics</a>. One rule is that the top of your screen should be at eye level. But my new vertical monitor is so tall that it runs into the desk. I can't lower it any further, and the top quarter of it is above eye level when I'm sitting down. I have a sit-stand desk, though, so when I'm standing up, that's not a problem. It never occurred to me that a standing desk would be good for my eyesight.</p> <p>But what about when I sit down? Standing up all day is sometimes too much. Software to the rescue.</p> <h2>Window Chord</h2> <p>When I'm sitting, I sacrifice the top quarter of the screen to ergonomics, shrinking my windows to fit the bottom three quarters. To make this easy, I added a few commands to my <a href="https://speechcode.com/blog/symbol./window-chord">Window Chord</a> (<a href="https://github.com/arthurgleckler/window-chord">Github</a>) window management package:</p> <table><tr><th>chord</th><th>command</th><th>action</th></tr><tr><td><kbd>ctrl</kbd>-<kbd>alt</kbd>-<kbd>shift</kbd>-<kbd>3</kbd></td><td class="command">geometry other-monitor</td><td class="action">Move window to other monitor.</td></tr><tr><td><kbd>ctrl</kbd>-<kbd>alt</kbd>-<kbd>shift</kbd>-<kbd>Home</kbd></td><td class="command">tall</td><td class="action">Make window take full height of monitor.</td></tr><tr><td><kbd>ctrl</kbd>-<kbd>alt</kbd>-<kbd>shift</kbd>-<kbd>End</kbd></td><td class="command">short</td><td class="action">Make window take ¾ of monitor height.</td></tr><tr><td><kbd>ctrl</kbd>-<kbd>alt</kbd>-<kbd>shift</kbd>-<kbd>PgDn</kbd></td><td class="command">geometry bottom</td><td class="action">Move window to bottom of monitor.</td></tr><tr><td><kbd>ctrl</kbd>-<kbd>alt</kbd>-<kbd>shift</kbd>-<kbd>PgUp</kbd></td><td class="command">geometry top</td><td class="action">Move window to top of monitor.</td></tr></table> <p>Even with this adjustment, I can get 157 lines of text (or 314 with Follow mode), which is great.</p> <h2>P.S.</h2> <p>I forgot to mention that this code relies on using <code>Join Displays</code> in <code>Settings</code> to turn both monitors into a single virtual monitor. That way, the code doesn't have to choose monitors explicitly. It just chooses coordinates that correspond to the various monitors.</p></div></article> Arthur A. Gleckler Tue, 26 Jul 2022 12:00:00 +0000