From 511481db3c3a06d2af000757853354698a1078f3 Mon Sep 17 00:00:00 2001 From: Linus Miller Date: Fri, 13 Nov 2015 18:22:29 +0000 Subject: [PATCH] Added default .xinitrc to /etc/skel. --- etc/skel/.xinitrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 etc/skel/.xinitrc diff --git a/etc/skel/.xinitrc b/etc/skel/.xinitrc new file mode 100644 index 0000000..ea4bc8a --- /dev/null +++ b/etc/skel/.xinitrc @@ -0,0 +1,25 @@ +#!/bin/sh + +# load any default xinit scripts +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for f in /etc/X11/xinit/xinitrc.d/*; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +# load all settings in .Xresource file (mainly for urxvt terminal) +if [ -s ~/.Xresources ]; then + xrdb ~/.Xresources +fi + +# load any user xmodmappings. +if [ -s ~/.Xmodmap ]; then + xmodmap ~/.Xmodmap +fi + +# update X font locations +xset +fp /usr/share/fonts/local +xset fp rehash + +exec $1