summaryrefslogtreecommitdiff
path: root/dz-feed
blob: 8d3caeb0d3190a7df25e51b5635850ebcc185394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Cache pdf files to be opened with dz

cache="${XDG_CACHE_HOME:-$HOME/.cache}"/dz

if [ "$1" = "-r" ] || [ ! -e "$cache" ]; then
	find "$HOME" -mindepth 1 \( -name ".*" -o -path "$HOME/cell" -o -path "$HOME/phone/*" \) -prune -o -print |
		sed '/\.pdf$/!d' | sort >"$cache"
	# notify-send "dz cache updated."
fi

cat "$cache"