summaryrefslogtreecommitdiff
path: root/.config/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/zprofile')
-rw-r--r--.config/zsh/zprofile5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile
index 7b30ade..79575ee 100644
--- a/.config/zsh/zprofile
+++ b/.config/zsh/zprofile
@@ -18,3 +18,8 @@ export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch/notmuchrc"
### Below allows pass to prompt for GPG passphrase
export GPG_TTY=$(tty)
+
+## StartX when first logging in.
+if [[ "$(tty)" = "/dev/tty1" ]]; then
+ pgrep dwm || startx
+fi