zathura: correctly read in $FILE in keybindings and add movepdf

This commit is contained in:
2024-02-22 16:46:38 +01:00
parent 35d8536fcf
commit dfbd109c6e
2 changed files with 11 additions and 1 deletions

9
.local/bin/tools/movepdf Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
file="$1"
dest="$(find "$HOME" -maxdepth 5 -type d -not -path "$HOME/.*" | dmenu -i -p 'move to folder:')"
if ! [ -d "$dest" ]; then
mkdir -p "$dest"
fi
echo $dest
echo $file
mv "$file" "$dest"