aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
blob: dffc2c14e859a0493292f148b117973cdf5d8ff1 (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" ] && "$f" || . "$f"
	done
	unset f
fi