aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-09-05 18:30:19 +0300
committerYaroslav <contact@yaroslavps.com>2020-09-05 18:30:19 +0300
commitf848575160ca441ee7129969c45c39f7f78ccbfc (patch)
tree8f24cd43279a933acee1ac33c588e3a8d1a390b1 /dotfiles/.local
parent0afbb41cc3bad6c6943d1ef1826b3b5464e9d7c2 (diff)
downloadswayrice-f848575160ca441ee7129969c45c39f7f78ccbfc.tar.gz
swayrice-f848575160ca441ee7129969c45c39f7f78ccbfc.zip
manage default applications with xdg-open/mimeo in ranger/vifm/etc.
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-xdotfiles/.local/bin/imv-rifle5
-rw-r--r--dotfiles/.local/share/applications/imv.desktop14
2 files changed, 19 insertions, 0 deletions
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;