diff --git a/etc/skel/.xinitrc b/etc/skel/.xinitrc index ea4bc8a..649589b 100644 --- a/etc/skel/.xinitrc +++ b/etc/skel/.xinitrc @@ -1,25 +1,36 @@ #!/bin/sh +# +# ~/.xinitrc +# +# Executed by startx (run your window manager from here) -# 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 +script="$HOME/.xsession" + +if [ -x "$script" -a ! -d "$script" ]; then + echo "Loading xsession script $script" + . "$script" fi -# update X font locations -xset +fp /usr/share/fonts/local -xset fp rehash - -exec $1 +## DE: awesome +#exec awesome + +## DE: XFCE4 +exec startxfce4 + +## DE: Gnome +# exec gnome-session + +## DE: KDE +#exec startkde diff --git a/etc/skel/.xsession b/etc/skel/.xsession new file mode 100755 index 0000000..4c0eb98 --- /dev/null +++ b/etc/skel/.xsession @@ -0,0 +1,8 @@ +#!/bin/sh +# +# ~/.xsession +# + +# update X font locations +xset +fp /usr/share/fonts/local +xset fp rehash