From 158733f61555069358fd2b0ca2c25ab3937d004a Mon Sep 17 00:00:00 2001 From: Lucas Holt Date: Tue, 19 Jan 2021 22:37:36 -0500 Subject: [PATCH] add initial xinitrc --- share/skel/Makefile | 2 +- share/skel/dot.xinitrc | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 share/skel/dot.xinitrc diff --git a/share/skel/Makefile b/share/skel/Makefile index 4600686115d..4f79c209df6 100644 --- a/share/skel/Makefile +++ b/share/skel/Makefile @@ -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 diff --git a/share/skel/dot.xinitrc b/share/skel/dot.xinitrc new file mode 100644 index 00000000000..2f0db193872 --- /dev/null +++ b/share/skel/dot.xinitrc @@ -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