From 31b7f8f3e2d32bb36a5afbbb4ec2a886ce6038db Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 17 Aug 2020 21:23:04 -0400 Subject: Changed autostarting in .profile --- .profile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index 21808e6..3defda2 100644 --- a/.profile +++ b/.profile @@ -26,9 +26,12 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')" fi -# +# Set this variable to allow autostart +export AUTOSTART=1 +# Set supported WM to autostart export DISPLAY_SESSION="dwm" + export SHELL="/bin/zsh" export TERMINAL="st" export EDITOR="nvim" @@ -66,6 +69,6 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" # Autostarting window manager -if [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then +if [ "$AUTOSTART" = "1" ] && [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx fi -- cgit v1.2.3