xdg mime and user dirs

This commit is contained in:
Murphy 2025-01-23 17:18:33 -05:00
parent 856620a387
commit 5847641056
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17

View file

@ -61,6 +61,53 @@
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
# web
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
# images
"image/png" = "imv.desktop";
"image/jpeg" = "imv.desktop";
"image/webp" = "imv.desktop";
"image/tga" = "imv.desktop";
"image/bmp" = "imv.desktop";
"image/gif" = "imv.desktop";
# audio video
"video/mp4" = "mpv.desktop";
"video/x-msvideo" = "mpv.desktop";
"video/mkv" = "mpv.desktop";
"video/webm" = "mpv.desktop";
"audio/mp3" = "mpv.desktop";
"audio/wav" = "mpv.desktop";
# other
"application/pdf" = "org.pwmt.zathura.desktop";
"x-scheme-handler/mspa" = "unofficial-homestuck-collection.desktop";
"x-scheme-handler/discord" = "discord.desktop";
};
};
xdg.userDirs = {
enable = true;
createDirectories = false;
desktop = "${config.homePath}/desktop";
documents = "${config.homePath}/documents";
download = "${config.homePath}/downloads";
music = "${config.homePath}/music";
pictures = "${config.homePath}/pictures";
publicShare = "${config.homePath}";
templates = "${config.homePath}";
videos = "${config.homePath}/videos";
};
gtk = {
enable = true;
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;