Reduced .xinit to test Fvwm in Xnest.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 24 Feb 2015 00:36:12 +0200
changeset 733 32379c87626c
parent 732 5168dff8f1eb
child 734 da0dc50393b6
Reduced .xinit to test Fvwm in Xnest.
.fvwm/xinit
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.fvwm/xinit	Tue Feb 24 00:36:12 2015 +0200
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# To test fvwm. To run with Xnest use:
+#
+#   $ xinit ~/.fvwm/xinit -- `command -v Xnest` :1
+#
+# or:
+#
+#   $ xinit ~/.fvwm/xinit -- `command -v Xephyr` :1
+
+[[ -f ~/.env ]] && . ~/.env || :
+[[ -f ~/.env.local ]] && . ~/.env.local || :
+
+[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults || :
+
+xsetroot -mod 2 2 -fg gray70 -bg gray60
+fvwm -cmd "Module FvwmM4 -m4-prefix -m4-prefix-defines $HOME/.fvwm/config" &
+exec xterm -geometry 80x42 -name "xinitrc" -e bash -i
--- a/Makefile	Tue Feb 24 00:24:58 2015 +0200
+++ b/Makefile	Tue Feb 24 00:36:12 2015 +0200
@@ -85,7 +85,7 @@
 		fi; \
 	done
 	chmod 700 ~/.gnupg/
-	chmod a+x ~/.fvwm/FvwmKbdd.pl
+	chmod a+x ~/.fvwm/FvwmKbdd.pl ~/.fvwm/xinit
 	command -v fvwm || exit 0; \
 	for f in /etc/xdg/menus/*.menu; do \
 		[ -f "$$f" ] || continue; \