From ad65301bf9dccf93ddf823e85954b5ec750e7448 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 15 Mar 2021 10:15:03 +0100 Subject: [PATCH] [xprofile] Add xprofile --- x/xprofile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 x/xprofile diff --git a/x/xprofile b/x/xprofile new file mode 100755 index 0000000..cdf44f8 --- /dev/null +++ b/x/xprofile @@ -0,0 +1,18 @@ +#!/bin/sh + +###################################### +### Additional X Environment variables +###################################### + +export QT_QPA_PLATFORMTHEME=qt5ct + +################################## +### Adjust for multi-monitor setup +################################## + +extern="HDMI-1" +intern="eDP-1" + +if xrandr | grep "$extern connected"; then + xrandr --output "$extern" --auto --primary --left-of "$intern" +fi