mime: extract declaration from implementation
Maybe this should be made into a separate package later.
This commit is contained in:
parent
884d02f003
commit
58b3150d3a
4 changed files with 116 additions and 75 deletions
58
user/desktop-entries.nix
Normal file
58
user/desktop-entries.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
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 = "neomutt %U";
|
||||
terminal = true;
|
||||
type = "Application";
|
||||
icon = "mutt";
|
||||
categories = [ "Network" "Email" ];
|
||||
startupNotify = false;
|
||||
mimeType = [ "x-scheme-handler/mailto" ];
|
||||
settings = { Keywords = "Mail;E-mail;"; };
|
||||
};
|
||||
down_meme = {
|
||||
name = "DownMeme";
|
||||
genericName = "Download memes";
|
||||
exec = "down_meme";
|
||||
terminal = true;
|
||||
type = "Application";
|
||||
icon = "download";
|
||||
categories = [ "Network" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue