aboutsummaryrefslogtreecommitdiff
path: root/stow/rcs/.profile
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-07-15 01:57:30 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2021-07-15 01:57:30 +0200
commit14791883624bf10227a6ffa9172c8030b87d4675 (patch)
tree8245e91cf4da07344dd1148b32c51d2b8c33f76d /stow/rcs/.profile
parentb8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8 (diff)
downloadconfigs-14791883624bf10227a6ffa9172c8030b87d4675.tar.gz
configs-14791883624bf10227a6ffa9172c8030b87d4675.zip
Lots of renames: stow can't handle folder with --dotfiles option.
Diffstat (limited to 'stow/rcs/.profile')
-rw-r--r--stow/rcs/.profile46
1 files changed, 46 insertions, 0 deletions
diff --git a/stow/rcs/.profile b/stow/rcs/.profile
new file mode 100644
index 0000000..d461cce
--- /dev/null
+++ b/stow/rcs/.profile
@@ -0,0 +1,46 @@
+# $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
+
+xinitrc=""
+
+if [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3; then
+ export STATUS_BAR="polybar"
+ xinitrc="$HOME/.xinitrcbspwm"
+elif [ "$(tty)" = "/dev/tty2" ] && ! pgrep -x dwm; then
+ export STATUS_BAR="dwmblocks"
+ xinitrc="$HOME/.xinitrcdwm"
+elif [ "$(tty)" = "/dev/tty3" ] && ! pgrep -x bspwm; then
+ export STATUS_BAR="i3blocks"
+ xinitrc="$HOME/.xinitrci3"
+elif [ "$(tty)" = "/dev/tty4" ] && ! pgrep -x gnome-session; then
+ xinitrc="$HOME/.xinitrcgnome"
+elif tty | grep -q '/dev/tty.*' ; then
+ tmux new -s "$(tty | cut -d'/' -f3)"
+fi
+
+if [ -n "$xinitrc" ]; then
+ echo ""
+ cat "$HOME/.xinitrcprev" "$xinitrc" "$HOME/.xinitrcpost" > "$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 >"$CONFIG_FOLDER_LOGS/startx.log" 2>"$CONFIG_FOLDER_LOGS/startx.err"
+fi