add desktop entries

This commit is contained in:
Leonardo Eugênio 2022-11-07 12:54:09 -03:00
parent f7b9c71006
commit 838a2b3b65

View file

@ -2,6 +2,53 @@
let inherit (import ./variables.nix) key theme color accent font; let inherit (import ./variables.nix) key theme color accent font;
in { in {
config = { config = {
xdg.desktopEntries = {
kak = {
name = "Kakoune";
genericName = "Text Editor";
comment = "Edit text files";
exec = "kak %F";
terminal = true;
type = "Application";
icon = "kak.desktop";
categories = [ "Utility" "TextEditor" ];
startupNotify = true;
mimeType = [
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
];
settings = {
Keywords = "Text;editor;";
TryExec = "kak";
};
};
neomutt = {
name = "Neomutt";
genericName = "Email Client";
comment = "View and Send Emails";
exec = "terminal neomutt %U";
terminal = false;
type = "Application";
icon = "mutt";
categories = [ "Network" "Email" ];
startupNotify = false;
mimeType = [ "x-scheme-handler/mailto" ];
settings = { Keywords = "Mail;E-mail;"; };
};
};
xdg.mimeApps = let xdg.mimeApps = let
createMimeAssociation = (mime_prefix: application: mime_suffix: { createMimeAssociation = (mime_prefix: application: mime_suffix: {