dotfiles

My dotfiles for Arch Linux
git clone git://git.janispagel.de/dotfiles.git
Log | Files | Refs | README

commit baf126f873b19b4592d49d3a5d392af01b673eef
parent 7d24c313cd9dfc72fc2ca1d73a8451f3a447a189
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Tue, 10 Nov 2020 15:58:17 +0100

Add support for mime types in xdg

Diffstat:
Amime/.config/mimeapps.list | 18++++++++++++++++++
Amime/.local/share/applications/audio.desktop | 4++++
Amime/.local/share/applications/file.desktop | 4++++
Amime/.local/share/applications/img.desktop | 4++++
Amime/.local/share/applications/mail.desktop | 4++++
Amime/.local/share/applications/pdf.desktop | 4++++
Amime/.local/share/applications/text.desktop | 4++++
Amime/.local/share/applications/video.desktop | 4++++
8 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/mime/.config/mimeapps.list b/mime/.config/mimeapps.list @@ -0,0 +1,18 @@ +[Default Applications] + +# xdg-open will use these settings to determine how to open filetypes. +# These .desktop entries can also be seen and changed in ~/.local/share/applications/ + +text/x-shellscript=text.desktop; +x-scheme-handler/mailto=mail.desktop; +text/plain=text.desktop; +application/postscript=pdf.desktop; +application/pdf=pdf.desktop; +image/png=img.desktop; +image/jpeg=img.desktop; +image/gif=img.desktop; +audio/flac=audio.desktop; +audio/mpeg=audio.desktop; +video/mp4=video.desktop; +video/x-matroska=video.desktop; +inode/directory=file.desktop; diff --git a/mime/.local/share/applications/audio.desktop b/mime/.local/share/applications/audio.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Music player +Exec=/usr/local/bin/st -e mpv %u diff --git a/mime/.local/share/applications/file.desktop b/mime/.local/share/applications/file.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=File Manager +Exec=/usr/local/bin/st -e nnn %u diff --git a/mime/.local/share/applications/img.desktop b/mime/.local/share/applications/img.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Image viewer +Exec=/usr/bin/sxiv -a %f diff --git a/mime/.local/share/applications/mail.desktop b/mime/.local/share/applications/mail.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Mail +Exec=/usr/local/bin/st -e neomutt %u diff --git a/mime/.local/share/applications/pdf.desktop b/mime/.local/share/applications/pdf.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=PDF reader +Exec=/usr/bin/zathura %u diff --git a/mime/.local/share/applications/text.desktop b/mime/.local/share/applications/text.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Text editor +Exec=/usr/local/bin/st -e nvim %u diff --git a/mime/.local/share/applications/video.desktop b/mime/.local/share/applications/video.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Video player +Exec=/usr/bin/mpv %u