-
Notifications
You must be signed in to change notification settings - Fork 2
/
.xinitrc
50 lines (42 loc) · 954 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
#
# .xinitrc
#
# Executed by startx (run your window manager from here)
#setxkbmap no
#unclutter &
#xmodmap ~/.Xmodmap
# set the cursor, most useful with xmonad (which does not set the cursor)
#xsetroot -cursor_name left_ptr
#exec ck-launch-session xmonad
# ck-launch-session is needed if you want the DE to shutdown and/or reboot the
# machine. Also, HAL must be running an you probably must be in the 'power'
# group. That is, instead of just 'startxfce4', use 'ck-launch-session
# startxfce4'.
# The following variable defines the session which is started if the user doesn't explicitly select a session
DEFAULT_SESSION=startxfce4
case $1 in
kde)
exec ck-launch-session startkde
;;
gnome)
exec ck-launch-session gnome-session
;;
xfce4)
exec ck-launch-session startxfce4
;;
icewm)
icewmbg &
icewmtray &
exec icewm
;;
wmaker)
exec wmaker
;;
blackbox)
exec blackbox
;;
*)
exec ck-launch-session $DEFAULT_SESSION
;;
esac