-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile
42 lines (37 loc) · 1.24 KB
/
profile
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
41
42
# ~./profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# Exportar variables
export allext="/run/media/$(whoami)/*"
export ALSOFT_DRIVERS="pulse"
export AUR="${HOME}/.local/opt/AUR"
#export EDITOR="vim"
#export MANPAGER="bat -l man -p"
#export MANPAGER="sh -c 'col -bx | bat -l man -p'"
#export MANROFFOPT="-c"
#export MOZ_USE_XINPUT2=1
export OO_PS4_TOOLCHAIN="/home/macydnah/Downloads/v0.5"
export OPT="${HOME}/.local/opt"
export PATH="${PATH}:/home/macydnah/.local/bin:/home/macydnah/Downloads/v0.5/bin"
# Turn off kbd_backlight if it's daytime or let them on if nighttime
#if [[ 10#$(date +%H) -gt 10#07 && 10#$(date +%H) -lt 18 ]] ;
# then kblight -f ; kblight -f ;
# else kblight -f ; kblight -a ;
#fi
# Autostart X or Wayland at login
#[[ ! $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- &>/dev/null
#[[ ! $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startsway -- &>/dev/null
# Autostart tmux at login
#if [[ ! $DISPLAY && $XDG_VTNR -eq 2 ]]\
#&& [[ "$TERM" != "screen" ]]\
#&& [[ "$SSH_CONNECTION" == "" ]] ; then
# WHOAMI=$(whoami)
# if tmux has-session -t $WHOAMI 2>/dev/null ; then
# tmux -2 attach-session -t $WHOAMI
# else
# tmux -2 new-session -s $WHOAMI
# fi
#fi
if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
exec tmux new-session -A -s shession
fi