blob: 76b3119e65fc22bd4fcd6c1580ecd89e62c97999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
DPI=96
case $AUTORANDR_CURRENT_PROFILE in
("laptop")
DPI=157
nmcli radio wifi on
;;
("docked")
DPI=96
nmcli radio all off
;;
esac
xrandr --dpi $DPI
emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null
systemctl --user restart redshift --no-block
i3-msg restart
notify-send --expire-time=5000 "Display profile: '$AUTORANDR_CURRENT_PROFILE'"
|