some mimeapp default application bs
This commit is contained in:
@@ -45,11 +45,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.mimeApps.defaultApplications = {
|
|
||||||
"text/html" = ["firefox.desktop"];
|
|
||||||
"text/xml" = ["firefox.desktop"];
|
|
||||||
"x-scheme-handler/http" = ["firefox.desktop"];
|
|
||||||
"x-scheme-handler/https" = ["firefox.desktop"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
osConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption elem;
|
||||||
|
browser =
|
||||||
|
if elem osConfig.networking.hostName ["cnix" "cnixpad"]
|
||||||
|
then "zen.desktop"
|
||||||
|
else "firefox.desktop";
|
||||||
cfg = config.home.userd.xdg;
|
cfg = config.home.userd.xdg;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
@@ -23,6 +28,53 @@ in {
|
|||||||
templates = "${config.home.homeDirectory}/documents/templates";
|
templates = "${config.home.homeDirectory}/documents/templates";
|
||||||
videos = "${config.home.homeDirectory}/media/videos";
|
videos = "${config.home.homeDirectory}/media/videos";
|
||||||
};
|
};
|
||||||
|
mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"text/html" = browser;
|
||||||
|
"text/xml" = browser;
|
||||||
|
"x-scheme-handler/http" = browser;
|
||||||
|
"x-scheme-handler/https" = browser;
|
||||||
|
"x-scheme-handler/chrome" = browser;
|
||||||
|
"application/x-extension-htm" = browser;
|
||||||
|
"application/x-extension-html" = browser;
|
||||||
|
"application/x-extension-shtml" = browser;
|
||||||
|
"application/x-extension-xhtml" = browser;
|
||||||
|
"application/x-extension-xht" = browser;
|
||||||
|
"application/xhtml+xml" = browser;
|
||||||
|
"application/json" = browser;
|
||||||
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
|
"inode/directory" = "thunar.desktop";
|
||||||
|
|
||||||
|
"image/apng" = "feh.desktop";
|
||||||
|
"image/avif" = "feh.desktop";
|
||||||
|
"image/bmp" = "feh.desktop";
|
||||||
|
"image/gif" = "feh.desktop";
|
||||||
|
"image/jpeg" = "feh.desktop";
|
||||||
|
"image/png" = "feh.desktop";
|
||||||
|
"image/svg+xml" = "feh.desktop";
|
||||||
|
"image/tiff" = "feh.desktop";
|
||||||
|
"image/webp" = "feh.desktop";
|
||||||
|
|
||||||
|
"video/H264" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/x-msvideo" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/mp4" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/mpeg" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/ogg" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/mp2t" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/webm" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/3gpp" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
"video/3gpp2" = ["mpv.desktop" "vlc.desktop"];
|
||||||
|
|
||||||
|
"application/x-7z-compressed" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/zip" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/vnd.rar" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/x-bzip" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/x-bzip2" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/x-tar" = "org.gnome.FileRoller.desktop";
|
||||||
|
"application/gzip" = "org.gnome.FileRoller.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,8 +54,5 @@ in {
|
|||||||
recolor-keephue = true;
|
recolor-keephue = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.mimeApps.defaultApplications = {
|
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user