summaryrefslogtreecommitdiffstats
path: root/.xinitrc
blob: 94c7ac35b3a6be5ad6a1f14b99049205cdaf9e61 (plain)
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
#!/bin/sh

set -eu

PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
PATH="${HOME}/bin:${PATH}"

. ~/.exports

# Should probably be split out into a module script executed by run-parts
eval "$(SSH_ASKPASS='/usr/bin/ssh-askpass' keychain --agents ssh --eval \
	--quiet id_rsa)"

xmodmap "${HOME}/.Xmodmap"
export GTK_IM_MODULE='xim'
export QT_IM_MODULE='xim'

xscreensaver &
dpmsmouse 'Logitech USB-PS/2 Optical Mouse' &

startfluxbox

rm -f ~/.xsessionmanage
mkfifo -m 0600 ~/.xsessionmanage
while read action; do
	case "${action}" in
		'quit')
			break
			;;
	esac
done <~/.xsessionmanage
rm -f ~/.xsessionmanage