From 2f977782b55d18c3deeae014d8d02ff497ac7797 Mon Sep 17 00:00:00 2001 From: cho Date: Sun, 18 Jun 2023 20:06:32 +0700 Subject: [PATCH] add mimeapps.list and desktop files --- home/default/.config/mimeapps.list | 27 +++++++++++++++++++ .../.local/share/applications/file.desktop | 4 +++ .../.local/share/applications/img.desktop | 4 +++ .../.local/share/applications/mail.desktop | 4 +++ .../.local/share/applications/pdf.desktop | 4 +++ .../.local/share/applications/rss.desktop | 4 +++ .../.local/share/applications/text.desktop | 4 +++ .../.local/share/applications/torrent.desktop | 5 ++++ .../.local/share/applications/video.desktop | 4 +++ 9 files changed, 60 insertions(+) create mode 100644 home/default/.config/mimeapps.list create mode 100644 home/default/.local/share/applications/file.desktop create mode 100644 home/default/.local/share/applications/img.desktop create mode 100644 home/default/.local/share/applications/mail.desktop create mode 100644 home/default/.local/share/applications/pdf.desktop create mode 100644 home/default/.local/share/applications/rss.desktop create mode 100644 home/default/.local/share/applications/text.desktop create mode 100644 home/default/.local/share/applications/torrent.desktop create mode 100644 home/default/.local/share/applications/video.desktop diff --git a/home/default/.config/mimeapps.list b/home/default/.config/mimeapps.list new file mode 100644 index 0000000..9aeec86 --- /dev/null +++ b/home/default/.config/mimeapps.list @@ -0,0 +1,27 @@ + +[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/magnet=torrent.desktop; +application/x-bittorrent=torrent.desktop; +x-scheme-handler/mailto=mail.desktop; +text/plain=text.desktop; +application/postscript=pdf.desktop; +application/pdf=pdf.desktop; +application/vnd.comicbook+zip=pdf.desktop; +application/vnd.comicbook-rar=pdf.desktop; +image/png=img.desktop; +image/jpeg=img.desktop; +image/gif=img.desktop; +application/rss+xml=rss.desktop +video/x-matroska=video.desktop +video/mp4=video.desktop +x-scheme-handler/lbry=lbry.desktop +inode/directory=file.desktop + +# other +x-scheme-handler/https=librewolf.desktop; +x-scheme-handler/http=librewolf.desktop; diff --git a/home/default/.local/share/applications/file.desktop b/home/default/.local/share/applications/file.desktop new file mode 100644 index 0000000..77ba386 --- /dev/null +++ b/home/default/.local/share/applications/file.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=File Manager +Exec=/usr/bin/foot -e lf %u diff --git a/home/default/.local/share/applications/img.desktop b/home/default/.local/share/applications/img.desktop new file mode 100644 index 0000000..5783107 --- /dev/null +++ b/home/default/.local/share/applications/img.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Image viewer +Exec=/usr/bin/nsxiv -a %f diff --git a/home/default/.local/share/applications/mail.desktop b/home/default/.local/share/applications/mail.desktop new file mode 100644 index 0000000..249dcbe --- /dev/null +++ b/home/default/.local/share/applications/mail.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Mail +Exec=/usr/bin/foot -e neomutt %u diff --git a/home/default/.local/share/applications/pdf.desktop b/home/default/.local/share/applications/pdf.desktop new file mode 100644 index 0000000..8c38677 --- /dev/null +++ b/home/default/.local/share/applications/pdf.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=PDF reader +Exec=/usr/bin/zathura %u diff --git a/home/default/.local/share/applications/rss.desktop b/home/default/.local/share/applications/rss.desktop new file mode 100644 index 0000000..6fafc4f --- /dev/null +++ b/home/default/.local/share/applications/rss.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=RSS feed addition +Exec=/usr/bin/env rssadd %U diff --git a/home/default/.local/share/applications/text.desktop b/home/default/.local/share/applications/text.desktop new file mode 100644 index 0000000..948407b --- /dev/null +++ b/home/default/.local/share/applications/text.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Text editor +Exec=/usr/bin/foot -e nvim %u diff --git a/home/default/.local/share/applications/torrent.desktop b/home/default/.local/share/applications/torrent.desktop new file mode 100644 index 0000000..cdc3f53 --- /dev/null +++ b/home/default/.local/share/applications/torrent.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Torrent +#Exec=/usr/bin/env transadd %U +Exec=deluge-gtk %U diff --git a/home/default/.local/share/applications/video.desktop b/home/default/.local/share/applications/video.desktop new file mode 100644 index 0000000..a29a0b1 --- /dev/null +++ b/home/default/.local/share/applications/video.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Video viewer +Exec=/usr/bin/mpv -quiet %f