Skip to content

Instantly share code, notes, and snippets.

@lpenz lpenz/steam-session.sh
Last active Jan 24, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.