Make scrot better (auto copy to clipboard)
This commit is contained in:
parent
289aff0259
commit
8069fb2f61
2 changed files with 2 additions and 6 deletions
|
|
@ -19,3 +19,5 @@ alias cdtmp='cd $(mktemp -d)'
|
||||||
alias la="ls -lah --color=always | less"
|
alias la="ls -lah --color=always | less"
|
||||||
|
|
||||||
alias g='git'
|
alias g='git'
|
||||||
|
|
||||||
|
alias scrot='grim -g "$(slurp)" - | wl-copy'
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,5 @@ sri() {
|
||||||
echo "sha384-${base64_hash}"
|
echo "sha384-${base64_hash}"
|
||||||
}
|
}
|
||||||
|
|
||||||
scrot() {
|
|
||||||
tmp_file=$(mktemp --tmpdir XXXXXX_scrot.png)
|
|
||||||
grim -g "$(slurp)" "$tmp_file"
|
|
||||||
echo "$tmp_file"
|
|
||||||
}
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue