From 7e22566df7e804e8adfa237e4ae36107bfc62c32 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Mon, 29 Jan 2024 16:52:39 -0600 Subject: turn off laptop screen when docked t495 --- x11/xprofile.T495 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'x11') diff --git a/x11/xprofile.T495 b/x11/xprofile.T495 index 4329dd8..1d66a7d 100755 --- a/x11/xprofile.T495 +++ b/x11/xprofile.T495 @@ -6,10 +6,13 @@ xinput --set-prop "TPPS/2 Elan TrackPoint" "libinput Accel Speed" xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.3 # make trackpad accelerate more xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Disable While Typing Enabled" 0 # don't disable trackpad while typing -# Docking station +# docking station if xrandr | grep "HDMI-A-0 connected 3840x2160" > /dev/null; then xrdb -merge $X11CONFIG/Xresources.desktop 2>/dev/null & xrdbpid=$! + # disable laptop screen + xrandr --output eDP --off + # set dp from docking station to 3840x2160@29.98hz since doesn't output in 60hz mode for some reason dpdisplay="$(xrandr | grep -E 'DisplayPort-[0-9]+ connected 3840x2160' | grep -o 'DisplayPort-.')" [ -n "$dpdisplay" ] && xrandr --output "$dpdisplay" --mode 3840x2160 --rate 29.98 -- cgit v1.2.3