all repos — nixfiles @ 9dee6fc90a41adfb2d2932088c6677871c08ff3d

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

autorandr: Fix profile detection

Alan Pearce
commit

9dee6fc90a41adfb2d2932088c6677871c08ff3d

parent

1196160bc1502e54fb3554259df8723d8bdb8c1c

1 file changed, 6 insertions(+), 4 deletions(-)

jump to
M autorandr/.config/autorandr/postswitchautorandr/.config/autorandr/postswitch
@@ -1,9 +1,11 @@
#!/bin/sh DPI=96 -if [ "$1" != "laptop" ] -then - DPI=144 -fi +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