Skip to content

Instantly share code, notes, and snippets.

@np422
Last active February 26, 2016 01:47
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 np422/5b8175c078c74477d9f9 to your computer and use it in GitHub Desktop.
Save np422/5b8175c078c74477d9f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# sudo apt-get install xvfb feh
# edit the screen resolution below to suite your display
trap "pkill xvfb ; pkill gnome-terminal ; exit" SIGINT SIGTERM SIGHUP
( xvfb-run -a -s "-screen 0 1920x1080x24 -fbdir /var/tmp" /usr/bin/gnome-terminal --window --full-screen --hide-menubar --geometry=1920x1080+0+0 --disable-fa\
ctory -e htop ) 2>&1 >/dev/null &
while $(true)
do
xwdtopnm /var/tmp/Xvfb_screen0 2>/dev/null | pnmtopng 2>/dev/null| feh -q --bg-fill - 2>/dev/null
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment