#!/bin/sh
# @description: write the description here
#
# Example of an xinitrc.SESSION
# Edit this file to suit your WM
# Save it as /etc/X11/xinit/xinitrc.<SESSION_NAME>
# Make it executable 
#
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Allow su to launch X apps
xhost +si:localuser:root

## Some example

# launch utility first
# dfm &
# rox --pinboard=$USER

# Fluxbox
#exec fluxbox

# Icewm
#exec icewm-sessions

# XFCE4
#exec startxfce4

# KDE
#exec startkde

# default 
exec twm

