f_scrot and s_scrot now copies to X clipboard.

This commit is contained in:
Sheldon Lee 2020-12-24 15:00:51 +08:00
parent 6ad2add75e
commit c2682eca52

View File

@ -7,12 +7,14 @@ s_scrot() {
name=$(date +${date_format}_sel.png) name=$(date +${date_format}_sel.png)
path="${scrot_dir}${name}" path="${scrot_dir}${name}"
scrot -s $path scrot -s $path
xclip -sel clip $path -t image/png
} }
f_scrot() { f_scrot() {
name=$(date +${date_format}_full.png) name=$(date +${date_format}_full.png)
path="${scrot_dir}${name}" path="${scrot_dir}${name}"
scrot $path scrot $path
xclip -sel clip $path -t image/png
} }
#cd into config dir #cd into config dir