summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2020-10-24 10:44:04 +0400
committerAndrew Guschin <saintruler@gmail.com>2020-10-24 10:44:04 +0400
commit2cd92521380bc25cdf40dda508498aa9a3029044 (patch)
tree36e1e35a9771849bc5d2acb46ebfd0c0f7446103
parent23fa7e2c44ddbb9124728fa8e5ab885889b1e59a (diff)
Changed xprofile
-rw-r--r--.profile8
-rw-r--r--.xinitrc2
-rw-r--r--.xprofile1
3 files changed, 8 insertions, 3 deletions
diff --git a/.profile b/.profile
index cfabdf6..b7d6959 100644
--- a/.profile
+++ b/.profile
@@ -27,7 +27,7 @@ export DISPLAY_SESSION="dwm"
export SHELL="/bin/zsh"
export TERMINAL="st"
export EDITOR="nvim"
-export BROWSER="firefox"
+export BROWSER="qutebrowser"
export VIMINIT="source $MYVIMRC"
# For Jetbrains products
@@ -61,8 +61,10 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
# Autostarting window manager
-if [ "$(tty)" = "/dev/tty1" ] && [ "$AUTOSTART" = "1" ] && [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then
- ! pidof Xorg >/dev/null 2>&1 && exec startx
+if [ "$(tty)" = "/dev/tty1" ]; then
+ if [ "$AUTOSTART" = "1" ] && [ -z "$DISPLAY" ] && [ ! -z "$DISPLAY_SESSION" ]; then
+ ! pidof Xorg >/dev/null 2>&1 && exec startx
+ fi
elif [ -z "$TMUX" ]; then
exec tmux
fi
diff --git a/.xinitrc b/.xinitrc
index d93adeb..b67ef74 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -4,6 +4,8 @@ if [ "$DISPLAY_SESSION" = "dwm" ]; then
session_line=dwm
elif [ "$DISPLAY_SESSION" = "openbox" ]; then
session_line=openbox-session
+elif [ "$DISPLAY_SESSION" = "xmonad" ]; then
+ session_line=xmonad
else
echo "DISPLAY_SESSION not specified. Exiting..."
exit 1
diff --git a/.xprofile b/.xprofile
index de0b9e4..f178ec3 100644
--- a/.xprofile
+++ b/.xprofile
@@ -1,6 +1,7 @@
#!/bin/sh
if [ "$DISPLAY_SESSION" != "openbox" ] && \
+ [ "$DISPLAY_SESSION" != "xmonad" ] && \
[ "$DISPLAY_SESSION" != "dwm" ]; then
exit 0
fi