Skip to content

Commit

Permalink
+ screenshot-all-web
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Dec 17, 2015
1 parent 057168f commit e1f22a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/screenshot-all-web
@@ -0,0 +1,12 @@
#!/bin/bash
FN="screenshot-workspaces-${1:-`date -I`}.png"
tfn="`tempfile`"
wsl="`seq 0 14`" # Workspaces to screenshot
for ws in $wsl; do
xdotool set_desktop $ws
sleep 2
xwd -root | xwdtopnm > "$tfn-$ws"
done
echo $wsl | sed -e "s#\([0-9]*\)#$tfn-\1#g" | xargs pnmcat -lr | pnmtopng > "/tmp/$FN"
optipng "/tmp/$FN"
dumpcheese "/tmp/$FN"

0 comments on commit e1f22a8

Please sign in to comment.