Skip to content

Instantly share code, notes, and snippets.

@dualbus
Created March 12, 2014 18:35
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 dualbus/9513412 to your computer and use it in GitHub Desktop.
Save dualbus/9513412 to your computer and use it in GitHub Desktop.
#!/bin/sh
channel_group=$HOME/.services
channel=$channel_group/xinit
parent=$$
unset pids
trap 'kill $pids; rm -f "$channel"' INT TERM
VBoxClient -d --clipboard & pids="$pids $!"
VBoxClient -d --display & pids="$pids $!"
VBoxClient -d --seamless & pids="$pids $!"
{
mkdir -p "$channel_group"
mkfifo "$channel" || :
read -r reply < "$channel"
kill "$parent"
} &
while :; do
xsetroot -name "$(date)"
sleep 0.5
done & pids="$pids $!"
while :; do
dwm
done & pids="$pids $!"
wait
#!/bin/sh
echo > "$HOME/.services/xinit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment