diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-18 22:15:18 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-18 22:15:18 +0200 |
commit | 01ad9de3742a330c741a9b47f999a081ad296b1c (patch) | |
tree | b634ab6beaf41ee6929fd0968e8eac08acc5dbbf | |
parent | 360ecccdad59c89de4caeaf7618b920584655399 (diff) |
[mmedia] added images option
-rwxr-xr-x | bin/menuscripts/mmedia | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/menuscripts/mmedia b/bin/menuscripts/mmedia index f071742..bd31a58 100755 --- a/bin/menuscripts/mmedia +++ b/bin/menuscripts/mmedia @@ -13,10 +13,15 @@ case "$1" in regex='^.\+\.\(pdf\)$' dirs="$dirs $HOME/docs" viewer() { zathura "$1"; } ;; + "images") + regex='^.\+\.\(png\|avif\|jpg\)$' + dirs="$dirs $HOME/pics" + viewer() { imv "$1"; } ;; *) choice="$(cat <<-EOF | commander -d -c video pdf + images EOF )" [ "$choice" ] || exit 1 |