added mimeapps

This commit is contained in:
Rouven Seifert 2023-02-04 22:46:46 +01:00
parent 429240f437
commit 6483ca60b2
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 22 additions and 2 deletions

View file

@ -275,6 +275,6 @@ in
};
};
home.file.".urlview".text = ''
COMMAND google-chrome-stable %s &> /dev/null
COMMAND qutebrowser %s &> /dev/null
'';
}

View file

@ -14,7 +14,7 @@ set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
set to_chars="➜"
# unchanged mailbox, changed, read only, attach mode
set status_chars = " "
ifdef crypt_chars set crypt_chars = " "
ifdef crypt_chars set crypt_chars = " "
set flag_chars = " "
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"

View file

@ -51,5 +51,25 @@
libyubikey
libfido2
];
xdg.mimeApps = {
enable = true;
defaultApplications =
let
image-viewers = [ "imv.desktop" "gimp.desktop" "swappy.desktop" "org.qutebrowser.qutebrowser.desktop" "google-chrome.desktop" ];
browsers = [ "org.qutebrowser.qutebrowser.desktop" "google-chrome.desktop" ];
in
{
"application/pdf" = [ "org.gnome.Evince.desktop" ];
"image/png" = image-viewers;
"image/jpg" = image-viewers;
"image/jpeg" = image-viewers;
"image/tiff" = image-viewers;
"image/gif" = image-viewers;
"image/webp" = image-viewers;
"image/ico" = image-viewers;
"x-scheme-handler/http" = browsers;
"x-scheme-handler/https" = browsers;
};
};
}