summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-07-17 13:49:06 +0400
committerAndrew <saintruler@gmail.com>2020-07-17 13:49:06 +0400
commit424f233a504495ddf1bb80cbfdc8021bab531b57 (patch)
tree162891fadc7930ae2e30bbf4d342d2b238924321 /.profile
parent9183013b850a4807e37576e7949ab77f4ef64c6e (diff)
Added openbox config and changed .profile to load window manager when sourced on tty1
Diffstat (limited to '.profile')
-rw-r--r--.profile9
1 files changed, 7 insertions, 2 deletions
diff --git a/.profile b/.profile
index e026c6c..bf669c9 100644
--- a/.profile
+++ b/.profile
@@ -26,6 +26,9 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')"
fi
+#
+export DISPLAY_SESSION="dwm"
+
export SHELL="/bin/zsh"
export TERMINAL="st"
export EDITOR="nvim"
@@ -62,5 +65,7 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
-# Passwords
-export CALCURSE_CALDAV_PASSWORD=$(pass show caldav/radicale)
+# Autostarting window manager
+if [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then
+ [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx
+fi