blob: 1556ce0afe35361d700809928440fff5f848342b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $HOME/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1) if ~/.bash_profile or ~/.bash_login
# exists.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
fi
# Source environment variables
[ -f "$HOME/.bash_vars" ] && . "$HOME/.bash_vars"
# Login commands
sudo loadkeys es
sudo -n loadkeys "$XDG_CONFIG_HOME/ttymaps.kmap"
[[ $(tty) = "/dev/tty6" ]] && setfont alt-8x8
if [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3; then
echo ""
cat "$HOME/.xinitrci3" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
#figlet "Starting i3-gaps..." | lolcat -a -d 1 -s 10 -p 1 -F 0.05
exec startx
elif [ "$(tty)" = "/dev/tty3" ] && ! pgrep -x xfce4-session; then
echo ""
cat "$HOME/.xinitrcxfce4" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
exec startx
elif [ "$(tty)" = "/dev/tty4" ] && ! pgrep -x gnome-session; then
echo ""
cat "$HOME/.xinitrcgnome" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
exec startx
elif tty | grep -q '/dev/tty.*' ; then
tmux new -s "$(tty | cut -d'/' -f3)"
fi
|