-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxinitrc
executable file
·75 lines (63 loc) · 1.66 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
#
# ~/.xinitrc - must be executable (permissions)
#
# Executed by startx (run your window manager from here)
# check if the OS already have some scripts for us
if test -d /etc/X11/xinit/xinitrc.d
then
for f in /etc/X11/xinit/xinitrc.d/*
do
test -x "$f" && source "$f"
done
unset f
fi
# set the keyboard map (gb is uk)
#setxkbmap gb
setxkbmap us
# we have a map so we can add xorg configuration in
if test -r "$HOME/.Xresources"
then
xrdb "$HOME/.Xresources"
fi
if test -r "$HOME/.Xmodmap"
then
xmodmap "$HOME/.Xmodmap"
fi
# mouse pointer for xmonad (xdm already does this for us)
#xsetroot -cursor_name left_ptr
# most of our configuration
xscreensaver -no-splash &
# urxvt has native transparency so we do not need this
#xcompmgr -c &
# java behaves badly in non-reparenting window managers (e.g. xmonad)
export _JAVA_AWT_WM_NONREPARENTING=1
# set the background (again, because qiv uses a different buffer)
feh=`which feh 2>/dev/null`
if test "x$feh" != "x" -a -x "$feh" -a -e /usr/share/archlinux/wallpaper
then
"$feh" --bg-scale --no-fehbg -z /usr/share/archlinux/wallpaper/a*.jpg
fi
unset feh
# pulse audio for alsa
if test -x /usr/bin/start-pulseaudio-x11
then
/usr/bin/start-pulseaudio-x11
fi
# IBUS working from a tray (this breaks sometimes)
ibusd=`which ibus-daemon 2>/dev/null`
if test "x$ibusd" != "x" -a -x "$ibusd"
then
"$ibusd" --daemonize --xim --desktop=xmonad
export XMODIFIERS=@im=ibus
fi
stalone=`which stalonetray 2>/dev/null`
if test "x$stalone" != "x" -a -x "$stalone"
then
"$stalone" &
fi
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec xmonad