-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
30 lines (29 loc) · 916 Bytes
/
.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
#!/usr/bin/env sh
# Load settings for i3
# Set terminal for i3-sensible-terminal
if command -v kitty >/dev/null 2>&1; then
export TERMINAL="$(command -v kitty)"
elif command -v urxvt256c >/dev/null 2>&1; then
export TERMINAL="$(command -v urxvt256c)"
elif command -v konsole >/dev/null 2>&1; then
export TERMINAL="$(command -v konsole)"
fi
# Set urxvt perl libraries path
export URXVT_PERL_LIB="$HOME/.local/src/urxvt-perls/deprecated/:$HOME/.local/src/urxvt-perls/"
# load urxvt config
if command -v xrdb >/dev/null 2>&1; then
xrdb -merge "$HOME/.config/rxvt/config"
fi
# use caps lock as ctrl
if command -v setxkbmap >/dev/null 2>&1; then
setxkbmap -option ctrl:nocaps
fi
# use left ctrl as escape
if command -v xmodmap >/dev/null 2>&1; then
xmodmap -e "keycode 37 = Escape NoSymbol Escape"
fi
# disable stty start/stop
if command -v stty >/dev/null 2>&1; then
stty start undef
stty stop undef
fi