#!/bin/sh DPI=96 case $AUTORANDR_CURRENT_PROFILE in ("laptop") DPI=144 nmcli radio wifi on ;; ("docked") DPI=120 nmcli radio all off ;; esac xrandr --dpi $DPI emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null i3-msg restart systemctl --user restart redshift notify-send --expire-time=5000 "Display profile: '$AUTORANDR_CURRENT_PROFILE'"