Permalink
Browse files

.rc.d/x11: added new WM type: none

Nice to run some apps in a separate X instance:

    WM=none WM_COMMAND=some-opengl-game x :1

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent 804edb1 commit 92d8f330f819dec7ecf8a8ef26e0774a819dfca2 @trofi committed Jan 1, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 .rc.d/x11/none/rc
View
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [[ -z $WM_COMMAND ]]; then
+ echo "ERROR: WM=none needs WM_COMMAND variable set to do something"
+ exit 1
+fi
+
+$WM_COMMAND

0 comments on commit 92d8f33

Please sign in to comment.