summaryrefslogtreecommitdiff
path: root/home/xyz/.local/share/qBittorrent/nova3/engines
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/share/qBittorrent/nova3/engines')
0 files changed, 0 insertions, 0 deletions
linkwall() { tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do walldir="$XDG_PICTURES_DIR/wallpapers/" name=$(basename "$file") if [ ! -e "$walldir$name" ]; then convwall "$file" "$walldir$name" || ln -s "$file" "$walldir" else notify-send 'error' "$name exist" fi done } # I choose not to put case nested in while read file loop # because it can pipe multiple files to one command? case "$1" in "d") [ "$(printf 'No\nYes' | dmenu -i -p 'delete?')" = "Yes" ] && tr '\n' '\0' | xargs -0 rm ;; "e") while read -r file; do alacritty -e sh -c "exiv2 pr -q -pa '$file' | less" & done ;;