-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xsession
executable file
·54 lines (45 loc) · 1.13 KB
/
.xsession
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
#!/bin/sh
#
# X startup script
LOGFILE=${HOME}/.xsession.log
log() {
printf "[%s] %s\n" "$(date +'%Y-%m-%dT%H:%M:%S')" "$1" >>$LOGFILE
}
run() {
if [[ ! -n $(command -v "$1") ]]; then
log "command $1 not found"
return
fi
log "running $1"
"$@"
}
log "Reading .xsession"
# Load any Xdefaults
if [ -f ${HOME}/.Xresources ]; then
log "Merging Xresources"
xrdb -merge ${HOME}/.Xresources
fi
export LANG=en_US.UTF-8
export LC_ALL="$LANG"
export LC_CTYPE="$LANG"
# Disable the bell
log "Disabling bell"
xset -b
setxkbmap -option terminate:ctrl_alt_bksp
#USE_GNOME_SESSION=1
#SESSION=$(readlink "${XDG_CONFIG_HOME:-$HOME/.config}/default-shell")
#log "Validating $SESSION"
#if [ -x $SESSION ]; then
# run compton -Gb &
# log "Starting $SESSION"
# if [ $USE_GNOMESESSION ]; then
# SESSION=$(basename $$SESSION)
# exec gnome-session --session=${SESSION}
# else
# exec ${SESSION}
# fi
#else
# log "No default shell set! Symlink your desired shell to ${XDG_CONFIG_HOME:-$HOME/.config}/default-shell"
#fi
exec quartz-wm
#exec ssh -Y lantern gnome-session --session=gnome-shell