added mimetypes

This commit is contained in:
willifan 2024-10-03 22:49:03 +02:00
parent 9cd68e154c
commit 5e49b6a324
3 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,7 @@
./autoupdate.nix
./garbage-collect.nix
./keyd.nix
./mimetype.nix
./optimise.nix
];

15
hosts/common/mimetype.nix Normal file
View file

@ -0,0 +1,15 @@
{ ... }:
{
xdg.mime.defaultApplications = {
"application/pdf" = "zen.desktop";
"text/html" = "zen.desktop";
"x-scheme-handler/http" = "zen.desktop";
"x-scheme-handler/https" = "zen.desktop";
"x-scheme-handler/about" = "zen.desktop";
"x-scheme-handler/unknown" = "zen.desktop";
};
environment.sessionVariables.DEFAULT_BROWSER = "zen";
}

View file

@ -24,7 +24,7 @@
# Execute your favorite apps at launch
exec-once = [
''hyprctl dispatch exec "[workspace 1 silent] kitty"''
''hyprctl dispatch exec "[workspace 2 silent] firefox"''
''hyprctl dispatch exec "[workspace 2 silent] zen"''
#''hyprctl dispatch exec "[workspace 3 silent] "''
#''hyprctl dispatch exec "[workspace 4 silent] "''
#''hyprctl dispatch exec "[workspace 8 silent] "''