diff options
| -rw-r--r-- | .profile | 8 | ||||
| -rw-r--r-- | .xinitrc | 2 | ||||
| -rw-r--r-- | .xprofile | 1 |
3 files changed, 8 insertions, 3 deletions
@@ -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 @@ -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 @@ -1,6 +1,7 @@ #!/bin/sh if [ "$DISPLAY_SESSION" != "openbox" ] && \ + [ "$DISPLAY_SESSION" != "xmonad" ] && \ [ "$DISPLAY_SESSION" != "dwm" ]; then exit 0 fi |