Created
November 2, 2014 20:55
-
-
Save maxrp/11259cbe20c7d0a499ff to your computer and use it in GitHub Desktop.
My preferred way of launching a test X server for WM experimentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./xephyrize 2bwm|dwm|cwm|tinywm | |
# Define a simple X session | |
function x_session() { | |
sleep 1; | |
$@ & | |
xterm & | |
} | |
# launch the nested X server | |
Xephyr +extension RANDR -screen ${SCREEN_SIZE:-800x600} :1 -ac & | |
# pass our arguments into the x_session | |
DISPLAY=:1 x_session $@ & | |
# wait for everyone in our shell's process group to exit | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment