From c6d2aae1666bced73e8e953f9553d301645f98d2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 1 Apr 2014 08:39:28 +0700 Subject: desktop/fvwm-crystal: Added (fvwm desktop environment). Signed-off-by: Willy Sudiarto Raharjo --- desktop/fvwm-crystal/xinitrc.fvwm-crystal | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 desktop/fvwm-crystal/xinitrc.fvwm-crystal (limited to 'desktop/fvwm-crystal/xinitrc.fvwm-crystal') diff --git a/desktop/fvwm-crystal/xinitrc.fvwm-crystal b/desktop/fvwm-crystal/xinitrc.fvwm-crystal new file mode 100644 index 0000000000000..613687c088d1e --- /dev/null +++ b/desktop/fvwm-crystal/xinitrc.fvwm-crystal @@ -0,0 +1,30 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/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 + +# Start fvwm-crystal +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + exec ck-launch-session /usr/bin/fvwm-crystal +else + exec /usr/bin/fvwm-crystal +fi -- cgit v1.2.3