-
Notifications
You must be signed in to change notification settings - Fork 96
/
.xsessionrc
43 lines (31 loc) · 1.06 KB
/
.xsessionrc
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
# My default editor is nano. I don't even able to find exit button in vim :D
export EDITOR='nano'
# Make ~/.bar folder executable
export PATH="${PATH}:$HOME/.bar"
# Make ~/.toys folder executable
export PATH="${PATH}:$HOME/.toys"
# Make ~/.utility folder executable
export PATH="${PATH}:$HOME/.utility"
# Make ~/.notify folder executable
export PATH="${PATH}:$HOME/.notify"
# Make ~/.notify folder executable
export PATH="${PATH}:$HOME/.executor"
# Make Go apps executable
export GOPATH="$HOME/.go"
export GOBIN="$HOME/.go/bin"
export PATH="${PATH}:$HOME/.go/bin"
RANGER_LOAD_DEFAULT_RC=FALSE
# Disable GTK CSD
# More explanation here
# https://github.com/PCMan/gtk3-nocsd
if [ -n "$STARTUP" ]; then
BASESTARTUP=${STARTUP%% *}
BASESTARTUP=${BASESTARTUP##*/}
if [ "$BASESTARTUP" = x-session-manager ]; then
BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
fi
if [ x"$BASESTARTUP" = x"${BASESTARTUP#gnome-session}" ] ; then
export GTK_CSD=0
STARTUP="env LD_PRELOAD=/path/to/libgtk3-nocsd.so.0 $STARTUP"
fi
fi