diff options
Diffstat (limited to 'scriptlets/peak_or_mid.sh')
-rwxr-xr-x | scriptlets/peak_or_mid.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scriptlets/peak_or_mid.sh b/scriptlets/peak_or_mid.sh new file mode 100755 index 0000000..c5047ab --- /dev/null +++ b/scriptlets/peak_or_mid.sh @@ -0,0 +1,7 @@ +#!/bin/bash + + +DIR="$( readlink -f "$1" )" +[[ -d "$DIR" ]] || { echo "NEED DIRECTORY NAME"; exit -1; } + +feh --sort filename --version-sort --info "printf '%S %wx%h'" --zoom max --scale-down -g 1280x720 -B black -d --action1 "gio trash %F" --action2 "[ -d \"${DIR}/peak\" ] || mkdir \"${DIR}/peak\"; mv %F \"${DIR}/peak\"" --action3 "[ -d \"${DIR}/mid\" ] || mkdir \"${DIR}/mid\"; mv %F \"${DIR}/mid/\"" "$DIR" |