blob: 82f8650fa81e50d2c8bdc5a1e09c13266082f320 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
set -x
__hidpi() {
xrdb -merge ~/.Xresources.hidpi
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export GDK_SCALE=2
export QT_SCREEN_SCALE_FACTORS=2
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORMTHEME=qt5ct
}
hostname=$(uname -n)
xrandr -s 0
xrdb ~/.Xresources
if [ "${hostname}" = "ws-bare01" ]; then
xrandr --output HDMI-0 --left-of DVI-D-0
fi
if [ "${hostname}" = "ws-xps01" ]; then
xrandr --output eDP1 --mode 3200x1800
__hidpi
fi
if [ "${hostname}" = "ws-work01" ]; then
xrandr --output eDP1 --mode 1920x1080
xrandr --output DP3 --off
xrandr --addmode DP3 1920x1080
xrandr --output DP3 --mode 1920x1080 --same-as eDP1
case "${1}" in
vertical*)
xrandr --output DP3 --scale 1x1 --rotate left --right-of eDP1
;;
esac
fi
|