Skip to content

Commit 1d5d58b

Browse files
committed
Add monitor configuration script
1 parent 275061f commit 1d5d58b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

zsh/custom/video.zsh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,24 @@ fix_rotation() {
2323
ffmpeg -display_rotation 0 -i "${OLD_NAME}" -c copy "${ARG}"
2424
done
2525
}
26+
27+
monitorconf() {
28+
# Monitors:
29+
# DP-1 = VG248
30+
# DP-2 = 34GK950F
31+
# DP-3 = VE247
32+
# HDMI-A-1 = TV
33+
case "${1}" in
34+
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
38+
;;
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
44+
;;
45+
esac
46+
}

0 commit comments

Comments
 (0)