Last active
January 24, 2019 21:57
-
-
Save lpenz/5bbcb5ac6fe1a9fc73478f13c895589f to your computer and use it in GitHub Desktop.
Start steam in a nested X server running icewm
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 | |
set -e -x | |
DISPLAY_SESSION=:1 | |
Xephyr "$DISPLAY_SESSION" -screen 1800x1000 & | |
PID_X=$! | |
trap 'kill "$PID_X"; wait "$PID_X"' EXIT | |
sleep 1 | |
( | |
export DISPLAY="$DISPLAY_SESSION" | |
icewm-session & | |
PID_ICEWM=$! | |
trap 'kill "$PID_ICEWM"; wait "$PID_ICEWM"' EXIT | |
steam | |
) | |
exit 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment