diff options
| author | Andrew <saintruler@gmail.com> | 2020-08-17 21:23:04 -0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-08-17 21:23:04 -0400 |
| commit | 31b7f8f3e2d32bb36a5afbbb4ec2a886ce6038db (patch) | |
| tree | 5422f0fcc3fd9b46f6a9c3ab017d12023ebf816a /.profile | |
| parent | cafeed16ba66e7ed9d8d84d5616ea2b2503cf0ba (diff) | |
Changed autostarting in .profile
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |