diff options
author | Leonard Schmidt <lems@gmx.net> | 2014-08-14 22:33:45 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-15 23:21:32 +0700 |
commit | 29569b8f8218c831842ef2e1be566d46b9f5ef3b (patch) | |
tree | 384bdb3c6922fea0fcdbcac7882117a45e13183d /desktop/ctwm/xinitrc.ctwm | |
parent | e5f0fc05ee131ac75436d09e45a1e6d4a1c51e4e (diff) | |
download | slackbuilds-29569b8f8218c831842ef2e1be566d46b9f5ef3b.tar.gz |
desktop/ctwm: Added (TWM extension).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/ctwm/xinitrc.ctwm')
-rw-r--r-- | desktop/ctwm/xinitrc.ctwm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/desktop/ctwm/xinitrc.ctwm b/desktop/ctwm/xinitrc.ctwm new file mode 100644 index 0000000000..fc1107ab3c --- /dev/null +++ b/desktop/ctwm/xinitrc.ctwm @@ -0,0 +1,32 @@ +#!/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 the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + exec ck-launch-session dbus-launch --exit-with-session /usr/bin/ctwm +else + exec /usr/bin/ctwm +fi + |