diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-11-24 16:19:59 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-11-24 16:19:59 -0500 |
| commit | edbe323e1df0173d1d945d69b7c2e20a5614224d (patch) | |
| tree | 4520d56261507bebbc37770699d6978ff549ef67 /local/bin/setup-default-apps.sh | |
| parent | 55bbf64b2cd05b93aa2288769515df9a8c2ed1bd (diff) | |
| download | dotfiles-edbe323e1df0173d1d945d69b7c2e20a5614224d.tar.gz dotfiles-edbe323e1df0173d1d945d69b7c2e20a5614224d.tar.bz2 dotfiles-edbe323e1df0173d1d945d69b7c2e20a5614224d.zip | |
Add custom scripts for desktop
Diffstat (limited to 'local/bin/setup-default-apps.sh')
| -rwxr-xr-x | local/bin/setup-default-apps.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/local/bin/setup-default-apps.sh b/local/bin/setup-default-apps.sh new file mode 100755 index 0000000..809824f --- /dev/null +++ b/local/bin/setup-default-apps.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Set defaults for xdg-open +# +# For a list of MIME types see https://www.iana.org/assignments/media-types/media-types.xhtml + +# Useful commands: +# xdg-mime query filetype FILE +# xdg-mime query default MIMETYPE + +# File +#pcmanfm + +# Image +xdg-mime default nsxiv.desktop image/bmp image/gif image/jpeg image/jpg image/png image/tiff image/x-bmp image/x-portable-anymap image/x-portable-bitmap image/x-portable-graymap image/x-tga image/x-xpixmap image/webp image/heic image/svg+xml application/postscript image/jp2 image/jxl image/avif image/heif + +# Video +#xdg-mime default mpv.desktop A_LOT_OF_MIME_TYPES + +# Mail +#thunderbird + +# Office +xdg-mime default org.pwmt.zathura.desktop application/pdf application/postscript image/vnd.djvu +#libreoffice + +# Text +xdg-mime default nvim.desktop text/plain + +# Net +xdg-mime default org.qbittorrent.qBittorrent.desktop application/x-bittorrent x-scheme-handler/magnet |
