yep, more dotfiles

xdg-mime: enforce some media association

wiro.world eedb5a0a e7d12c77

verified
+14 -2
+14 -2
home-manager/fragments/xdg-mime.nix
··· 45 45 files = [ "org.gnome.Nautilus.desktop" ]; 46 46 browser = [ "zen-beta.desktop" ]; 47 47 images = [ "imv.desktop" ]; 48 + video = [ "mpv.desktop" ]; 49 + audio = [ "mpv.desktop" ]; 50 + torrents = [ "transmission-gtk.desktop" ]; 48 51 in 49 52 { 50 - "inode/directory" = files; 53 + "inode/directory" = files ++ images ++ audio ++ video; 51 54 52 55 "application/pdf" = browser; 53 56 "text/html" = browser; ··· 57 60 "x-scheme-handler/unknown" = browser; 58 61 "image/svg+xml" = browser; 59 62 60 - # Associate images to `imv` 61 63 "image/bmp" = images; 62 64 "image/gif" = images; 63 65 "image/jpeg" = images; ··· 66 68 "image/png" = images; 67 69 "image/tiff" = images; 68 70 "image/heif" = images; 71 + 72 + "video/mp4" = video; 73 + "video/x-matroska" = video; 74 + 75 + "audio/flac" = audio; 76 + 77 + "x-scheme-handler/magnet" = torrents; 78 + "application/x-bittorrent" = torrents; 69 79 }; 70 80 71 81 associations.added = { 82 + "inode/directory" = [ "imv.desktop" "mpv.desktop" ]; 83 + 72 84 "application/pdf" = [ "firefox.desktop" ]; 73 85 "x-scheme-handler/about" = [ "firefox.desktop" ]; 74 86 "x-scheme-handler/unknown" = [ "firefox.desktop" ];