feat (home/graphical): custom .desktop files, filter default apps
This commit is contained in:
parent
cb57c3fd7c
commit
d5b2a8832b
6 changed files with 280 additions and 47 deletions
49
home/packages/librewolf/default.nix
Normal file
49
home/packages/librewolf/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ ... }:
|
||||
{
|
||||
home.file."librewolf-gnome-theme" = {
|
||||
target = ".librewolf/default/chrome/librewolf-gnome-theme";
|
||||
source = fetchTarball {
|
||||
url = "https://github.com/rafaelmardojai/firefox-gnome-theme/archive/v143.tar.gz";
|
||||
sha256 = "1gkfi77n8cn5xzl3wi9mggh7adirjrsnbqygg1mcvjy0ynmd6kfh";
|
||||
};
|
||||
};
|
||||
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
profiles.default = {
|
||||
name = "Default";
|
||||
settings = {
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"gnomeTheme.hideSingleTab" = true;
|
||||
};
|
||||
userChrome = ''
|
||||
@import "librewolf-gnome-theme/userChrome.css";
|
||||
@import "librewolf-gnome-theme/theme/colors/dark.css";
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
xdg.desktopEntries.librewolf = {
|
||||
categories = [
|
||||
"Network"
|
||||
"WebBrowser"
|
||||
];
|
||||
comment = "Browse the Web";
|
||||
exec = "librewolf --name librewolf %U";
|
||||
genericName = "Web Browser";
|
||||
icon = ./icon.svg;
|
||||
mimeType = [
|
||||
"text/html"
|
||||
"text/xml"
|
||||
"application/xhtml+xml"
|
||||
"application/vnd.mozilla.xul+xml"
|
||||
"x-scheme-handler/http"
|
||||
"x-scheme-handler/https"
|
||||
];
|
||||
name = "Web";
|
||||
startupNotify = true;
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue