summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-08-26 04:59:24 +0400
committerAndrew <saintruler@gmail.com>2020-08-26 04:59:24 +0400
commit70825f19ff5c8bd78780265ece1fc2c00a026f84 (patch)
treeca06eb21b52147f7ba6751e106c8c3648232a3c0 /.profile
parent75d736925fac9ab42c6015f2930a82c2eeee3235 (diff)
Changed icons in status bar scripts and added tmux to autostart in tty/terminal
Diffstat (limited to '.profile')
-rw-r--r--.profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/.profile b/.profile
index 3defda2..2860b35 100644
--- a/.profile
+++ b/.profile
@@ -69,6 +69,8 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
# Autostarting window manager
-if [ "$AUTOSTART" = "1" ] && [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then
- [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx
+if [ "$(tty)" = "/dev/tty1" ] && [ "$AUTOSTART" = "1" ] && [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then
+ ! pidof Xorg >/dev/null 2>&1 && exec startx
+elif [ -z "$TMUX" ]; then
+ exec tmux
fi