diff options
| author | Dennis Lee <dennis@dennislee.xyz> | 2020-04-07 22:03:16 -0700 |
|---|---|---|
| committer | Dennis Lee <dennis@dennislee.xyz> | 2020-04-07 22:03:16 -0700 |
| commit | 833ea05b3fc9d0c648eda40a4f84a430a12d15ad (patch) | |
| tree | 46e9cf1432458d8435456c873c50360309abe541 /.config/sxiv/exec/key-handler | |
| parent | cd2a1633cf3c12f8f60cd9d05847b4b8e9e8096f (diff) | |
| parent | 2d8fe0c738e84f2a202914771e7be665718d588e (diff) | |
| download | eibhear-833ea05b3fc9d0c648eda40a4f84a430a12d15ad.tar.gz eibhear-833ea05b3fc9d0c648eda40a4f84a430a12d15ad.tar.zst eibhear-833ea05b3fc9d0c648eda40a4f84a430a12d15ad.zip | |
Merge remote-tracking branch 'origin/master' into xdgify
Diffstat (limited to '.config/sxiv/exec/key-handler')
| -rwxr-xr-x | .config/sxiv/exec/key-handler | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index e096f6e..279f9f6 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -6,11 +6,13 @@ do "c") [ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" $XDG_CONFIG_HOME/directories | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")" [ -z "$destdir" ] && exit + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." & ;; "m") [ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" $XDG_CONFIG_HOME/directories | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")" [ -z "$destdir" ] && exit + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." & ;; "r") |
