f_scrot/s_scrot now addes seconds to file name.
This commit is contained in:
parent
f6105b8455
commit
0a1f66a98e
@ -2,15 +2,21 @@
|
||||
|
||||
#screenshots using scrot
|
||||
scrot_dir=$HOME/screenshots/
|
||||
|
||||
date_format='%Y-%m-%d_%H-%M-%S'
|
||||
s_scrot() {
|
||||
name=$(date +%Y-%m-%d_%H-%M_sel.png)
|
||||
name=$(date +${date_format}_sel.png)
|
||||
path="${scrot_dir}${name}"
|
||||
scrot -s $path
|
||||
}
|
||||
|
||||
f_scrot() {
|
||||
name=$(date +%Y-%m-%d_%H-%M_full.png)
|
||||
name=$(date +${date_format}_full.png)
|
||||
path="${scrot_dir}${name}"
|
||||
scrot $path
|
||||
}
|
||||
|
||||
#cd into config dir
|
||||
cfdir()
|
||||
{
|
||||
cd $HOME/.config/$1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user