summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2019-05-03 15:03:21 -0400
committerLuke Shumaker <lukeshu@datawire.io>2019-05-03 15:03:21 -0400
commitaf56e80a3c60e17859ae3b3daa5fc4b44754b667 (patch)
treeea97bd6bd9ac0a33b3831cef1eda8b3ba116a6ef
parent80c80d364563dbdcc789d2ddf68f1fd909dfd5a3 (diff)
fix-dpi: Add more comments
-rwxr-xr-x.local/bin/fix-dpi6
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/fix-dpi b/.local/bin/fix-dpi
index 251b0ad..ee0412d 100755
--- a/.local/bin/fix-dpi
+++ b/.local/bin/fix-dpi
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
# Copyright 2019 Luke Shumaker
+#
+# Adjusts the xrandr 1.2, xrandr 1.3, and xrdb DPI settings according
+# to each output's current mode (pixel resolution) and self-reported
+# physical dimensions (mm).
# env-var: MAX_DPI: integer
-# env-var: DRY_RUN: empty/non-empty
+# env-var: DRY_RUN: empty=false / non-empty=true
( # Phase 1: Probe outputs
export LC_ALL=C