-
Notifications
You must be signed in to change notification settings - Fork 1
/
xsession
executable file
·55 lines (42 loc) · 1.31 KB
/
xsession
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
#!/bin/sh
# .xsession - startup script for XDM
# setup XDG_*
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_CONFIG_DIRS="/etc/xdg:/usr/local/etc/xdg"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CURRENT_DESKTOP=XMonad
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_SESSION_TYPE=x11
export XDG_SESSION_CLASS=user
# set cookie if using non-XDG aware display manager
[ -z "${XDG_SESSION_COOKIE}" ] && export XDG_SESSION_COOKIE="$(hostname -s)-$(date +'%s').$$-123456789"
# start dbus
#eval $(dbus-launch)
[ X"${1}" = X"with-dbus" ] || exec dbus-launch --exit-with-session "$0" with-dbus
# start ibus xim
ibus-daemon --xim --daemonize --replace
# load common X setup
xprofile="${HOME}/.xprofile"
[ -x "${xprofile}" ] && . "${xprofile}"
# Set up an icon tray
stalonetray &
# apps
xmixer -q
xscreensaver -no-splash &
oneko -tomoyo -bg pink -fg purple -time 50000 &
xbindkeys &
# check if using sndio
if ! command -v sndioctl > /dev/null
then
# microphone in Firefox needs pulseaudio if no sndiod available
command -v pulseaudio > /dev/null && pulseaudio --start --log-target=syslog
fi
# for system tray
volumeicon &
# a power manager
#xfce4-power-manager &
# WIFI manager
# [ -x /usr/bin/nm-applet ] && nm-applet --sm-disable &
# finally start the WM
exec xmonad