aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-22 22:37:15 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-22 22:37:15 +0530
commit458a1c1016c47c76e17ab222c26d6558e5d75500 (patch)
tree5f34122bc2a4227e84b1eced87bc75810a5870a5
parent170ee0a38be274eaa0ae292f3c70e3e303a41d0a (diff)
conditionally loading secondmonitor.sh on x startup
-rwxr-xr-x.xprofile6
1 files changed, 4 insertions, 2 deletions
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