File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -25,22 +25,22 @@ fix_rotation() {
25
25
}
26
26
27
27
monitorconf () {
28
- # Monitors:
29
- # DP-1 = VG248
30
- # DP-2 = 34GK950F
31
- # DP-3 = VE247
32
- # HDMI-A-1 = TV
28
+ local PRIMARY=" DP-1"
29
+ local VG248=" DP-2"
30
+ local VE247=" DP-3"
31
+ local TV=" HDMI-A-1"
33
32
case " ${1} " in
34
33
pc | PC)
35
- kscreen-doctor output.DP-1.enable output.DP-2.enable output.DP-3.enable output.HDMI-A-1.disable \
36
- output.DP-1.mode.1920x1080@144 output.DP-2.mode.3440x1440@144 output.DP-3.mode.1920x1080@60 \
37
- output.DP-1.position.0,180 output.DP-2.position.1920,0 output.DP-3.position.5360,180
34
+ kscreen-doctor " output.${PRIMARY} .enable" " output.${VG248} .enable" " output.${VE247} .enable" " output.${TV} .disable" \
35
+ " output.${PRIMARY} .mode.3440x1440@144" " output.${VG248} .mode.1920x1080@144" " output.${VE247} .mode.1920x1080@60" \
36
+ " output.${VG248} .position.0,180" " output.${PRIMARY} .position.1920,0" " output.${VE247} .position.5360,180" \
37
+ " output.${PRIMARY} .hdr.enable"
38
38
;;
39
39
tv | TV)
40
- kscreen-doctor output.DP-1 .disable output.DP-2 .disable output.DP-3 .enable output.HDMI-A-1 .enable \
41
- output.DP-3 .mode.1920x1080@60 output.HDMI-A-1 .mode.3840x2160@120 \
42
- output.DP-3 .position.0,0 output.HDMI-A-1 .position.0,0 \
43
- output.HDMI-A-1 .wcg.enable output.HDMI-A-1 .scale.2
40
+ kscreen-doctor " output.${PRIMARY} .disable" " output.${VG248} .disable" " output.${VE247} .enable" " output.${TV} .enable" \
41
+ " output.${VE247} .mode.1920x1080@60" " output.${TV} .mode.3840x2160@120" \
42
+ " output.${VE247} .position.0,0" " output.${TV} .position.0,0" \
43
+ " output.${TV} .wcg.enable" " output.${TV} .scale.2"
44
44
;;
45
45
esac
46
46
}
You can’t perform that action at this time.
0 commit comments