From 458a1c1016c47c76e17ab222c26d6558e5d75500 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 22 Aug 2022 22:37:15 +0530 Subject: conditionally loading secondmonitor.sh on x startup --- .xprofile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.xprofile') diff --git a/.xprofile b/.xprofile index 11e7911..d464d42 100755 --- a/.xprofile +++ b/.xprofile @@ -6,6 +6,7 @@ if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then exec startx fi + # makes optimus-manager work (probably) # xrandr --setprovideroutputsource modesetting NVIDIA-0 # xrandr --auto @@ -20,7 +21,8 @@ xmodmap /home/zt/.Xmodmap & blueman-applet & picom & dunst & -polystart & nitrogen --restore & +emacs --daemon & udiskie & - +polystart & +xrandr | grep "HDMI-0 connected" && secondmonitor.sh -- cgit v1.2.3