-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.profile
executable file
·90 lines (77 loc) · 1.89 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env sh
if [ -z "${STATIC_PROFILE_LOADED}" ]; then
export STATIC_PROFILE_LOADED=1
#######################
# Turn off beep sound #
#######################
xset b off
########
# Path #
########
append_path() {
if [ $# -eq "0" ]; then
printf "Usage: $0 [path]\n"
return 1
fi
for arg; do
case ":$PATH:" in
*:"$arg":*)
;;
*)
PATH="${PATH:+$PATH:}$arg"
esac
done
}
append_path "${HOME}/.local/bin"
export PATH
###############
# Text editor #
###############
export EDITOR=nvim
export VISUAL=subl
#############
# IM Module #
#############
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export QT4_IM_MODULE=ibus
export CLUTTER_IM_MODULE=ibus
export GLFW_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
# export IBUS_ENABLE_SYNC_MODE=1
#####################################
# Java application blank window fix #
#####################################
export AWT_TOOLKIT="MToolkit"
export _JAVA_AWT_WM_NONREPARENTING=1
#######################
# Android development #
#######################
export ANDROID_SDK_ROOT="/opt/android-sdk"
#########################
# Suppress wine message #
#########################
export WINEDEBUG="fixme-all"
######################
# Power Menu Command #
######################
export POWEROFF="systemctl poweroff"
export REBOOT="systemctl reboot"
export SLEEP="systemctl suspend"
export LOCK="i3lock-fancy"
fi
# Dynamic env
#####################
# Network interface #
#####################
ETHERNET_INTERFACE="$(command ls /sys/class/net | grep "^e")"
WIRELESS_INTERFACE="$(command ls /sys/class/net | grep "wl")"
export ETHERNET_INTERFACE
export WIRELESS_INTERFACE
###########
# Theming #
###########
export THEME="ayu-dark" # TODO: rofi theme chooser & theme switcher script
export WALLPAPER_DIRECTORY="${HOME}/.wallpaper" # TODO: rofi wallpaper chooser
export WALLPAPER="ayu-dark.png" # TODO: Wallapaer changer
export WALLPAPER_MODE="fill"