From f848575160ca441ee7129969c45c39f7f78ccbfc Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 5 Sep 2020 18:30:19 +0300 Subject: manage default applications with xdg-open/mimeo in ranger/vifm/etc. --- dotfiles/.local/bin/imv-rifle | 5 +++++ dotfiles/.local/share/applications/imv.desktop | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 dotfiles/.local/bin/imv-rifle create mode 100644 dotfiles/.local/share/applications/imv.desktop (limited to 'dotfiles/.local') diff --git a/dotfiles/.local/bin/imv-rifle b/dotfiles/.local/bin/imv-rifle new file mode 100755 index 0000000..26d1673 --- /dev/null +++ b/dotfiles/.local/bin/imv-rifle @@ -0,0 +1,5 @@ +#!/bin/sh + +dir=$(dirname "$1") + +imv "$dir" -n "$1" diff --git a/dotfiles/.local/share/applications/imv.desktop b/dotfiles/.local/share/applications/imv.desktop new file mode 100644 index 0000000..d558282 --- /dev/null +++ b/dotfiles/.local/share/applications/imv.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=imv +GenericName=Image viewer +GenericName[en_US]=Image viewer +Comment=Fast freeimage-based Image Viewer +Exec=imv-rifle %f +NoDisplay=true +Terminal=false +Type=Application +Categories=Graphics;2DGraphics;Viewer; +MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-tga;image/x-xbitmap; +Name[en_US]=imv +Icon=multimedia-photo-viewer +Keywords=photo;picture; -- cgit v1.2.3