Skip to content

Instantly share code, notes, and snippets.

@lpenz
Last active January 24, 2019 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpenz/5bbcb5ac6fe1a9fc73478f13c895589f to your computer and use it in GitHub Desktop.
Save lpenz/5bbcb5ac6fe1a9fc73478f13c895589f to your computer and use it in GitHub Desktop.
Start steam in a nested X server running icewm
#!/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