-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
executable file
·36 lines (29 loc) · 891 Bytes
/
.xinitrc
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
#!/bin/bash
# In case everything goes wrong, we at least fall back to a plain xterm
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
set +e > /dev/null 2>&1
set +u > /dev/null 2>&1
set +o posix > /dev/null 2>&1
if type shopt > /dev/null 2>&1 ; then
shopt -s execfail
else
no_exit_on_failed_exec=1
fi
# Source common code shared between the
# X session and X init scripts
. /etc/X11/xinit/xinitrc.common
xset -dpms
xset s off
xset s noblank
xrandr --output VGA-0 --mode 1024x768 --output LVDS --mode 1024x768 --same-as VGA-0
x11vnc -loop -forever -nopw -display :0 -auth guess &
unclutter &
$HOME/bin/o3_dashboard &
# finally start the window manager
unset WINDOW_MANAGER STARTUP
exec $WINDOWMANAGER ${1+"$@"}
# call failsafe
exit 0