fix .zprofile & .xinitrc

This commit is contained in:
vincent 2018-09-30 20:48:29 +02:00
parent 0dbc41d2d7
commit 0b1daa991f
2 changed files with 7 additions and 11 deletions

View File

@ -1,4 +1,3 @@
??? d'ici jusqu'à ???FIN des lignes ont pu être insérées/effacées
#!/bin/sh
#
# ~/.xinitrc
@ -15,15 +14,11 @@ nvidia-settings --load-config-only &
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
exec dbus-launch i3
#case $1 in
#i3)
# exec dbus-launch i3
#;;
#*)
#exec $1
#;;
#esac
case $1 in
i3 ) exec dbus-launch i3;;
* ) exec $1;;
esac
#exec openbox
# exec gnome-session
# exec startkde

View File

@ -3,7 +3,8 @@ if [ -d "$HOME/.local/bin" ]; then
fi
if [ -f "/bin/Xorg" ]; then
[[ $(tty) == '/dev/tty1' ]] && startx i3
[[ $(tty) == '/dev/tty1' ]] && startx ~/.xinitrc i3
[[ $(tty) == '/dev/tty3' ]] && startx ~/.xinitrc awesome
fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && [[ -z $XDG_SESSION_TYPE ]]; then
XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session