xdg mime and user dirs
This commit is contained in:
parent
856620a387
commit
5847641056
1 changed files with 47 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue