Use xinit instead of startx. Use case to select session in .xinitrc

master
Ian Mancini 5 years ago
parent c7c2364fca
commit c2d4551f79

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Vim a # Neovim
command -v vim >/dev/null && alias vi="vi" vim="vim" vimdiff="vimdiff" command -v vim >/dev/null && alias vi="vi" vim="vim" vimdiff="vimdiff"
command -v nvim >/dev/null && alias vi="nvim" vim="nvim" vimdiff="nvim -d" command -v nvim >/dev/null && alias vi="nvim" vim="nvim" vimdiff="nvim -d"
@ -13,7 +13,6 @@ alias \
dmesg="dmesg --ctime" \ dmesg="dmesg --ctime" \
sudo='sudo ' # https://wiki.archlinux.org/index.php/Sudo#Passing_aliases sudo='sudo ' # https://wiki.archlinux.org/index.php/Sudo#Passing_aliases
# Color # Color
alias \ alias \
ls="ls -hN --group-directories-first --color=auto" \ ls="ls -hN --group-directories-first --color=auto" \
@ -21,3 +20,6 @@ alias \
grep="grep -i --color=auto" \ grep="grep -i --color=auto" \
Grep="grep --color=auto" \ Grep="grep --color=auto" \
diff="diff --color=auto" \ diff="diff --color=auto" \
# Xorg
alias startx="xinit"

@ -4,4 +4,11 @@ export EDITOR="nvim"
export BROWSER="chromium" export BROWSER="chromium"
export TERMINAL={{TERMINAL}} export TERMINAL={{TERMINAL}}
exec i3 # Here Xfce is kept as default
session=${1:-i3}
case $session in
i3|i3wm ) exec i3;;
steam|steamos ) steamos-session i3;;
* ) exec $1;;
esac

Loading…
Cancel
Save