autorandr/.config/autorandr/postswitch (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh DPI=96 case $AUTORANDR_CURRENT_PROFILE in ("laptop") DPI=144;; ("docked") DPI=120;; esac xrandr --dpi $DPI emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null i3-msg restart systemctl --user restart redshift