aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-08 21:46:05 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-08 21:46:05 +0530
commit170ee0a38be274eaa0ae292f3c70e3e303a41d0a (patch)
treeb557b1b2e617b67e717571e6d07ea73ad4d6ea75 /.xprofile
parent13d80183fdbb64c1babfd163b71fd0755703a149 (diff)
removed startup apps from XMonad and moved them to .xprofile
Diffstat (limited to '.xprofile')
-rwxr-xr-x.xprofile12
1 files changed, 9 insertions, 3 deletions
diff --git a/.xprofile b/.xprofile
index 221fae7..11e7911 100755
--- a/.xprofile
+++ b/.xprofile
@@ -1,8 +1,14 @@
-#!/bin/bash
+#!/bin/zsh
+
+# zprofile contents
+[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
+if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi
# makes optimus-manager work (probably)
-xrandr --setprovideroutputsource modesetting NVIDIA-0
-xrandr --auto
+# xrandr --setprovideroutputsource modesetting NVIDIA-0
+# xrandr --auto
# makes gnome-keyring work
dbus-update-activation-environment --all