aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
blob: 935cb33b954e7aa48131b6967fdcdf29785b8802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

if [ -f ~/.files ]; then
	. "$HOME/.files"
	for f in $DOTFILEBASE/xinitrc.d/*; do
		# Some scripts require bash, but .xinitrc is sourced from sh.
		# If a script is marked executable, it is executed instead of sourced.
		[ -x "$f" ] && exec "$f" || . "$f"
	done
	unset f
fi