diff options
Diffstat (limited to 'x11/xprofile.T495')
-rwxr-xr-x | x11/xprofile.T495 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/x11/xprofile.T495 b/x11/xprofile.T495 index 6dbc742..124c45e 100755 --- a/x11/xprofile.T495 +++ b/x11/xprofile.T495 @@ -9,12 +9,16 @@ xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Disable While Typing En # docking station if xrandr | grep "HDMI-A-0 connected 3840x2160" > /dev/null; then xrdb -merge $X11CONFIG/Xresources.desktop 2>/dev/null & xrdbpid=$! + input-leaps --config "$XDG_CONFIG_HOME/input-leap/input-leap.conf" --disable-crypto & + + # make HDMI-A-0 the primary display + xrandr --output HDMI-A-0 --primary # 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-.')" + dpdisplay="$(xrandr | grep -E 'DisplayPort-[0-9]+ connected' | grep -o 'DisplayPort-.')" [ -n "$dpdisplay" ] && xrandr --output "$dpdisplay" --mode 3840x2160 --rate 29.98 --right-of "HDMI-A-0" wait $xrdbpid # wait for xrdb like in base xprofile |