tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
xdg-mime: enforce some media association
wiro.world
1 month ago
eedb5a0a
e7d12c77
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
+14
-2
1 changed file
expand all
collapse all
unified
split
home-manager
fragments
xdg-mime.nix
+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
48
+
video = [ "mpv.desktop" ];
49
49
+
audio = [ "mpv.desktop" ];
50
50
+
torrents = [ "transmission-gtk.desktop" ];
48
51
in
49
52
{
50
50
-
"inode/directory" = files;
53
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
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
71
+
72
72
+
"video/mp4" = video;
73
73
+
"video/x-matroska" = video;
74
74
+
75
75
+
"audio/flac" = audio;
76
76
+
77
77
+
"x-scheme-handler/magnet" = torrents;
78
78
+
"application/x-bittorrent" = torrents;
69
79
};
70
80
71
81
associations.added = {
82
82
+
"inode/directory" = [ "imv.desktop" "mpv.desktop" ];
83
83
+
72
84
"application/pdf" = [ "firefox.desktop" ];
73
85
"x-scheme-handler/about" = [ "firefox.desktop" ];
74
86
"x-scheme-handler/unknown" = [ "firefox.desktop" ];