Просмотр исходного кода

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

Uses `scrot -s`, but makes the names actually readable/useful later.
Lu Stadler лет назад: 7
Родитель
Сommit
4f167cd2cf
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      .bin/shot

+ 8 - 0
.bin/shot

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"