Last active
February 26, 2016 01:47
-
-
Save np422/5b8175c078c74477d9f9 to your computer and use it in GitHub Desktop.
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 | |
# 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