diff options
author | Alan Pearce | 2017-09-13 13:33:41 +0200 |
---|---|---|
committer | Alan Pearce | 2017-09-13 13:33:41 +0200 |
commit | 9dee6fc90a41adfb2d2932088c6677871c08ff3d (patch) | |
tree | 7a69560ab566687ad8011fddc0a1d249d376c85f | |
parent | 1196160bc1502e54fb3554259df8723d8bdb8c1c (diff) | |
download | dotfiles-9dee6fc90a41adfb2d2932088c6677871c08ff3d.tar.lz dotfiles-9dee6fc90a41adfb2d2932088c6677871c08ff3d.tar.zst dotfiles-9dee6fc90a41adfb2d2932088c6677871c08ff3d.zip |
autorandr: Fix profile detection
-rwxr-xr-x | autorandr/.config/autorandr/postswitch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/autorandr/.config/autorandr/postswitch b/autorandr/.config/autorandr/postswitch index c314da3..fc5d828 100755 --- a/autorandr/.config/autorandr/postswitch +++ b/autorandr/.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 |