diff options
| -rwxr-xr-x | dz | 3 | ||||
| -rwxr-xr-x | dz-feed (renamed from fz-feed) | 4 | ||||
| -rwxr-xr-x | fz | 3 | ||||
| -rwxr-xr-x | packsize | 3 | ||||
| -rwxr-xr-x | rmw (renamed from rm_whitespaces) | 2 |
5 files changed, 9 insertions, 6 deletions
@@ -0,0 +1,3 @@ +#!/bin/bash + +dz-feed | dmenu -p "dz" -i -l 15 | xargs -r zathura @@ -1,12 +1,12 @@ #!/bin/sh -cache="$HOME/.cache/fz" +cache="$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 "fz cache updated." + notify-send "dz cache updated." fi cat "$cache" @@ -1,3 +0,0 @@ -#!/bin/bash - -fz-feed | dmenu -p "fz" -i -l 15 | xargs -r zathura diff --git a/packsize b/packsize new file mode 100755 index 0000000..0aa3fdc --- /dev/null +++ b/packsize @@ -0,0 +1,3 @@ +#!/bin/sh + +dpkg-query -W --showformat='${Package} ${Installed-Size}\n' | sort -k2 -n -r @@ -17,7 +17,7 @@ cd "$dir" || { } for file in "$dir"/*; do - newname="$(echo "$file" | sed -e 's/[ \t]/\_/g' -e 's/["`”“]*//g')" + newname="$(echo "$file" | sed -e 's/["`”“-]*//g' -e 's/[ \t]+/\_/g')" mv "$file" "$newname" done |
