]> code.delx.au - dotfiles/blob - .xsession
Initial configs
[dotfiles] / .xsession
1 #!/gnu/usr/bin/bash
2
3 cd
4
5 if [ "$(uname)" = "SunOS" ]; then
6 # Congo ninja power!
7 touch ~/.RSHTOCONGO
8 rsh "$(/local/mc/bin/pick)" "DISPLAY=$DISPLAY /usr/bin/env bash --login ~/.xsession"
9 if [ -e ~/.RSHTOCONGO ]; then
10 # If we failed to get to a congo, then fallback to an xterm
11 xterm
12 rm -f ~/.RSHTOCONGO
13 fi
14 exit
15 fi
16
17 xscreensaver &
18 ~suits/pub/win32/mapaltxwin32 -s
19
20 # We're on a congo!
21 rm -f ~/.RSHTOCONGO
22
23 # Merge resources
24 if [ -r ~/.Xresources ]; then
25 xrdb -merge ~/.Xresources
26 fi
27
28 # Set the locale
29 export LC_CTYPE=en_AU.UTF-8
30
31 # If there's no XRENDER disable transparency
32 xdpyinfo | grep -q "RENDER"
33 if [ \! $? -eq 0 ]; then
34 xrdb -merge <(echo URxvt.inheritPixmap: False)
35 fi
36
37 # Set a desktop background (use the -a option after -e to scale to
38 # the max preserving aspect ratio)
39 # It would be better to put these in ~/GNUStep/Library/WindowMaker/autostart
40 # which gets run _after_ WindowMaker
41 # wmsetbg -b black -S -e -d -u /usr/share/backgrounds/images/default.png
42 # ~suits/pub/bin/randombg2 --permanent --quiet /usr/share/backgrounds/images
43
44 # If an exec fails, try the next one
45 shopt -s execfail
46 exec ~suits/pub/bin/wmaker --no-dock || exec icewm || exec rxvt || exec xterm
47