.xsessionrc

changeset 823
da66fb550c74
parent 617
595c6f803258
equal deleted inserted replaced
822:63a61745e560 823:da66fb550c74
1 #!/bin/sh 1 #!/bin/sh
2 2
3 PLATFORM="$(uname -s)" 3 PLATFORM="$(uname -s)"
4 VIRT='no'
5 4
6 if [ "$PLATFORM" = "OpenBSD" ]; then 5 if [ "$PLATFORM" = "OpenBSD" ]; then
7 PATH="/usr/X11R6/bin:$PATH" 6 PATH="/usr/X11R6/bin:$PATH"
8 fi 7 fi
9 8
22 21
23 if [ -r ~/.Xdefaults.local ]; then 22 if [ -r ~/.Xdefaults.local ]; then
24 xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults 23 xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults
25 fi 24 fi
26 25
27 xcompmgr -n & 26 if lspci | grep -q VirtualBox; then
28
29 urxvtd -o &
30
31 if [ -r ~/.xsessionrc.local ]; then
32 . ~/.xsessionrc.local
33 fi
34
35 if [ "$VIRT" = "yes" ]; then
36 xset b off -dpms s off 27 xset b off -dpms s off
37 else 28 else
38 xset b off s 300 dpms 360 29 xset b off s 300 dpms 360
39 xautolock -detectsleep & 30 xautolock -detectsleep &
40 pulseaudio --daemonize=no & 31 pulseaudio --daemonize=no &
41 nm-applet & 32 nm-applet &
42 fi 33 fi
43 34
44 jobs >&2 35 if [ -r ~/.xsessionrc.local ]; then
36 . ~/.xsessionrc.local
37 fi
45 38
39 jobs -l >&2
40

mercurial