#!/bin/sh -e # switch to the internal display xrandr --output eDP-1 --auto --scale 1x1 --output HDMI-1 --off # set TrueType font, higher dpi, restart cwm xrdb "$HOME/.Xdefaults" echo 'XTerm*faceName: DejaVu Sans Mono:size=12' | xrdb -merge pkill -HUP cwm # zzz when the lid has closed doas sysctl machdep.lidaction=1