From 3536e250b53f583ff3f5ee5b042a18c8ffd61e48 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 23 Jun 2020 22:12:15 +0200 Subject: Manage mimeapps --- gui/apps/file.nix | 9 +++++++++ gui/apps/web.nix | 5 +++++ 2 files changed, 14 insertions(+) (limited to 'gui') diff --git a/gui/apps/file.nix b/gui/apps/file.nix index 7fa1f64..3474cbd 100644 --- a/gui/apps/file.nix +++ b/gui/apps/file.nix @@ -42,6 +42,15 @@ ''; }; + xdg.mimeApps.defaultApplications = { + "application/pdf" = [ "org.gnome.Evince.desktop" ]; + + "image/png" = [ "sxiv.desktop" ]; + "image/jpg" = [ "sxiv.desktop" ]; + + "video/mp4" = [ "mpv.desktop" ]; + }; + # sxiv config xresources.extraConfig = '' Sxiv.font: Iosevka:size=12 diff --git a/gui/apps/web.nix b/gui/apps/web.nix index 540150a..5b85ba5 100644 --- a/gui/apps/web.nix +++ b/gui/apps/web.nix @@ -10,6 +10,11 @@ ]); }; + xdg.mimeApps.defaultApplications = { + "x-scheme-handler/http" = [ "firefox.desktop" ]; + "x-scheme-handler/https" = [ "firefox.desktop" ]; + }; + programs.firefox.enable = true; services.syncthing.enable = true; -- cgit v1.2.3