commit 83ad0bace25e34528dc1b80c0f82c2750a1ca71a parent a69182177b7b9579e26c041fd119adbc605df02b Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Mon, 15 Feb 2021 22:55:43 -0800 Add xdg-open(1) module I suppose this isn't really xdg-open(1) configuration, but, since that what I'm going to use these for I'm putting it there anyway. Diffstat:
8 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -16,6 +16,7 @@ MODULES =\ vim\ vimb\ whois\ + xdg-open\ xmodmap\ xorg\ zathura\ diff --git a/modules/xdg-open/.config/mimeapps.list b/modules/xdg-open/.config/mimeapps.list @@ -0,0 +1,11 @@ +# mime type list + +[Default Applications] +application/ogg=ogg.desktop +application/pdf=pdf.desktop; +application/postscript=ps.desktop; +audio/mpeg=mpeg.desktop +image/jpeg=image.desktop; +image/png=image.desktop; +video/mp4=video.desktop +video/x-matroska=video.desktop diff --git a/modules/xdg-open/.local/share/applications/image.desktop b/modules/xdg-open/.local/share/applications/image.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=application +Name=Image viewer +Exec=sxiv -a %f diff --git a/modules/xdg-open/.local/share/applications/mpeg.desktop b/modules/xdg-open/.local/share/applications/mpeg.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=MPEG player +Exec=mpg123 %f diff --git a/modules/xdg-open/.local/share/applications/ogg.desktop b/modules/xdg-open/.local/share/applications/ogg.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Ogg Vorbis player +Exec=ogg123 %f diff --git a/modules/xdg-open/.local/share/applications/pdf.desktop b/modules/xdg-open/.local/share/applications/pdf.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=PDF viewer +Exec=mupdf %f diff --git a/modules/xdg-open/.local/share/applications/ps.desktop b/modules/xdg-open/.local/share/applications/ps.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=PostScript viewer +Exec=zathura %f diff --git a/modules/xdg-open/.local/share/applications/video.desktop b/modules/xdg-open/.local/share/applications/video.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Video player +Exec=mpv %f