2014-04-14 08:21:06 +08:00
|
|
|
#!/bin/sh
|
2020-05-30 09:03:17 +08:00
|
|
|
|
|
|
|
# Slackware FVWM95 xinitrc script
|
2014-04-14 08:21:06 +08:00
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
|
2020-05-30 09:03:17 +08:00
|
|
|
# Uncomment this if you would like fvwm95 to launch in a dbus session.
|
|
|
|
#dbus_cmd="dbus-launch --exit-with-session"
|
|
|
|
|
2014-04-14 08:21:06 +08:00
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
2020-05-30 09:03:17 +08:00
|
|
|
xrdb -merge $sysresources
|
2014-04-14 08:21:06 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
2020-05-30 09:03:17 +08:00
|
|
|
xmodmap $sysmodmap
|
2014-04-14 08:21:06 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $userresources ]; then
|
2020-05-30 09:03:17 +08:00
|
|
|
xrdb -merge $userresources
|
2014-04-14 08:21:06 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $usermodmap ]; then
|
2020-05-30 09:03:17 +08:00
|
|
|
xmodmap $usermodmap
|
2014-04-14 08:21:06 +08:00
|
|
|
fi
|
|
|
|
|
2020-05-30 09:03:17 +08:00
|
|
|
# start fvwm95
|
|
|
|
|
|
|
|
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
|
|
|
|
ck-launch-session $dbus_cmd /usr/bin/fvwm95
|
|
|
|
else
|
|
|
|
$dbus_cmd /usr/bin/fvwm95
|
|
|
|
fi
|
2014-04-14 08:21:06 +08:00
|
|
|
|