Browse Source

~/.bin/shot: Take a screenshot and maybe name it

Uses `scrot -s`, but makes the names actually readable/useful later.
Lu Stadler 7 years ago
parent
commit
4f167cd2cf
1 changed files with 8 additions and 0 deletions
  1. 8 0
      .bin/shot

+ 8 - 0
.bin/shot

@ -0,0 +1,8 @@
1
#!/bin/bash
2
3
suffix=""
4
if [ -n "$1" ]; then
5
	suffix="_$1"
6
fi
7
8
scrot -s "%Y-%m-%dT%H:%M:%S${suffix}.png"