1 #!/bin/bash |
1 #!/bin/sh |
2 |
2 |
|
3 PLATFORM="$(uname -s)" |
3 VIRT='no' |
4 VIRT='no' |
4 |
5 |
5 if [ "$(uname -s)" = "OpenBSD" ]; then |
6 if [ "$PLATFORM" = "OpenBSD" ]; then |
6 PATH="/usr/X11R6/bin:$PATH" |
7 PATH="/usr/X11R6/bin:$PATH" |
7 fi |
8 fi |
8 |
9 |
9 hsetroot -solid "#002244" &>/dev/null || \ |
10 hsetroot -solid "#002244" >/dev/null 2>&1 || \ |
10 xsetroot -def -solid "#002244" |
11 xsetroot -def -solid "#002244" |
11 |
12 |
12 xcompmgr -n &>/dev/null </dev/null & |
13 xcompmgr -n >/dev/null 2>&1 </dev/null & |
13 |
14 |
14 xmodmap ~/.xmodmaprc |
15 xmodmap ~/.xmodmaprc |
15 |
16 |
16 if [ -r ~/.Xdefaults.local ]; then |
17 if [ -r ~/.Xdefaults.local ]; then |
17 xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults |
18 xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults |
26 fi |
27 fi |
27 |
28 |
28 if [ "$VIRT" = "yes" ]; then |
29 if [ "$VIRT" = "yes" ]; then |
29 xset b off -dpms s off |
30 xset b off -dpms s off |
30 else |
31 else |
31 xset b off |
32 xset b off s 6 dpms standby 6 |
32 xautolock -detectsleep & |
33 xautolock -detectsleep & |
33 pulseaudio --daemonize |
34 pulseaudio --daemonize |
34 nm-applet &>/dev/null </dev/null & |
35 nm-applet >/dev/null 2>&1 </dev/null & |
35 fi |
36 fi |
36 |
37 |