summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-06-10 07:54:49 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-06-10 07:54:49 -0400
commit6207180f7bb12ae81187a0fd1dbfc62d3162ba69 (patch)
tree6ec4e74d9f771bcd66bdaf5895b81f6523e07a4d /.config
parente02041660351a78d3a227b0e9ce1edd0beed9ec8 (diff)
downloadeibhear-6207180f7bb12ae81187a0fd1dbfc62d3162ba69.tar.gz
eibhear-6207180f7bb12ae81187a0fd1dbfc62d3162ba69.tar.zst
eibhear-6207180f7bb12ae81187a0fd1dbfc62d3162ba69.zip
fix keyhandler
Diffstat (limited to '.config')
-rwxr-xr-x.config/sxiv/exec/key-handler4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index f3dd7dc..4a4f10a 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -4,12 +4,12 @@ do
case "$1" in
"w") setbg "$file" & ;;
"c")
- [ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
[ ! -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:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
;;