blob: 85a7cfef4a33437ada559ab63b631c35e5c76983 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
DPI=96
case $AUTORANDR_CURRENT_PROFILE in
("laptop")
DPI=109
;;
("docked")
DPI=109
;;
esac
xrandr --dpi $DPI
emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null
notify-send --expire-time=5000 "Display profile: '$AUTORANDR_CURRENT_PROFILE'"
|