aboutsummaryrefslogtreecommitdiff
path: root/x1
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-07-05 21:03:38 -0400
committerB. Watson <yalhcru@gmail.com>2020-07-05 21:03:38 -0400
commit94ea7a8cd41b5b0cebf2606f4319ca5050e80520 (patch)
tree703f962eb3713871172e766565e4fa35b599b800 /x1
parent135b6988a809f22a633d9a90273cd6447cfa85be (diff)
downloadmisc-scripts-94ea7a8cd41b5b0cebf2606f4319ca5050e80520.tar.gz
Add some new stuff
Diffstat (limited to 'x1')
-rwxr-xr-xx113
1 files changed, 13 insertions, 0 deletions
diff --git a/x1 b/x1
new file mode 100755
index 0000000..e3f3dca
--- /dev/null
+++ b/x1
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+WM="${1:-/etc/X11/xinit/xinitrc.fvwm2}"
+case "$1" in
+ "") ;;
+ /*) ;;
+ *) WM=/etc/X11/xinit/xinitrc.$1 ;;
+esac
+
+[ ! -x "$WM" ] && WM="$( which $1 )"
+
+echo startx $WM -- :1
+exec startx $WM -- :1