aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
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