env/home: associate audio/video mime types with good default apps
This commit is contained in:
parent
5ed7888710
commit
68982b7f2a
15
modules/universal/env/home-manager.nix
vendored
15
modules/universal/env/home-manager.nix
vendored
|
@ -96,14 +96,29 @@ in
|
|||
templates = "$HOME/.xdg/Templates";
|
||||
videos = "$HOME/Videos";
|
||||
};
|
||||
|
||||
# the xdg mime type for a file can be found with:
|
||||
# - `xdg-mime query filetype path/to/thing.ext`
|
||||
xdg.mimeApps.enable = true;
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
# HTML
|
||||
"text/html" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/http" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/https" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/about" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "librewolf.desktop" ];
|
||||
# IMAGES
|
||||
"image/heif" = [ "org.gnome.gThumb.desktop" ]; # apple codec
|
||||
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||
# VIDEO
|
||||
"video/mp4" = [ "vlc.desktop" ];
|
||||
"video/quicktime" = [ "vlc.desktop" ];
|
||||
"video/x-matroska" = [ "vlc.desktop" ];
|
||||
# AUDIO
|
||||
"audio/flag" = [ "vlc.desktop" ];
|
||||
"audio/mpeg" = [ "vlc.desktop" ];
|
||||
"audio/x-vorbis+ogg" = [ "vlc.desktop" ];
|
||||
};
|
||||
|
||||
# convenience
|
||||
|
|
Loading…
Reference in New Issue
Block a user