mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
added mimeapps
This commit is contained in:
parent
429240f437
commit
6483ca60b2
3 changed files with 22 additions and 2 deletions
|
@ -275,6 +275,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.file.".urlview".text = ''
|
home.file.".urlview".text = ''
|
||||||
COMMAND google-chrome-stable %s &> /dev/null
|
COMMAND qutebrowser %s &> /dev/null
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
||||||
set to_chars="➜"
|
set to_chars="➜"
|
||||||
# unchanged mailbox, changed, read only, attach mode
|
# unchanged mailbox, changed, read only, attach mode
|
||||||
set status_chars = " "
|
set status_chars = " "
|
||||||
ifdef crypt_chars set crypt_chars = " "
|
ifdef crypt_chars set crypt_chars = " "
|
||||||
set flag_chars = " "
|
set flag_chars = " "
|
||||||
|
|
||||||
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
|
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
|
||||||
|
|
|
@ -51,5 +51,25 @@
|
||||||
libyubikey
|
libyubikey
|
||||||
libfido2
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue