Skip to content

Commit

Permalink
add initial xinitrc
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Jan 20, 2021
1 parent 8d16ca8 commit 158733f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion share/skel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FILESGROUPS= FILES1 FILES2
FILES1= dot.cshrc dot.login dot.login_conf dot.mailrc dot.mkshrc dot.profile \
dot.shrc
dot.shrc dot.xinitrc
FILES2= dot.mail_aliases dot.rhosts
FILES1DIR= ${SHAREDIR}/skel
FILES2DIR= ${SHAREDIR}/skel
Expand Down
22 changes: 22 additions & 0 deletions share/skel/dot.xinitrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
# ~/.xinitrc
# Executed by startx (run your window manager from here)

DEFAULT_SESSION="wmaker"

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


case $1 in
wmaker|startxfce4|twm|etoile)
exec $1
;;
*)
exec $DEFAULT_SESSION
;;
esac

0 comments on commit 158733f

Please sign in to comment.