This commit is contained in:
fz0x1 2024-11-18 18:11:06 +01:00
parent d1c94d50ff
commit 4aaf3de01b
Signed by: fz0x1
GPG key ID: 6F81647BE1B459F4
10 changed files with 84 additions and 34 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env sh
connected_monitors=$(xrandr | grep " connected" | awk '{ print $1 }')
if echo "$connected_monitors" | grep -q "HDMI"; then
xrandr --output eDP-1 --off
xrandr --output HDMI-1-0 --mode 2560x1440 --rate 165.00 --dpi 120
# xrandr --output eDP-1 --left-of HDMI-1-0
xrandr --output HDMI-1-0 --primary
else
xrandr --output eDP-1 --mode 2560x1600 --rate 240.00 --dpi 160
fi