Skip to content

Commit

Permalink
bin/screenshot: export to subdirectory and optionally give name
Browse files Browse the repository at this point in the history
  • Loading branch information
mslehto committed Sep 22, 2018
1 parent 98cab1d commit 8d605f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/screenshot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

DATE="$(date +%Y-%m-%d_%H%M%S)"
FILENAME=~/${DATE}_screenshot.png
FILENAME=~/ss/${DATE}_screenshot_$1.png
LINK=~/latest_screenshot.png
xwd | xwdtopnm | pnmtopng > $FILENAME
if [ $? -eq 0 ]
Expand Down

0 comments on commit 8d605f2

Please sign in to comment.