all repos — nixfiles @ 2b735a460a3f8334de5cac878fd2b0a390c2f0f2

System and user configuration, managed by nix and home-manager

autorandr/.config/autorandr/postswitch (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
DPI=96
if [ "$1" != "laptop" ]
then
  DPI=144
fi

xrandr --dpi $DPI
emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null
i3-msg restart
systemctl --user restart redshift