浏览代码

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

Uses `scrot -s`, but makes the names actually readable/useful later.
Lu Stadler 7 年之前
父节点
当前提交
4f167cd2cf
共有 1 个文件被更改,包括 8 次插入0 次删除
  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"