From 22ef09119d48aa94009bfb917ae2bb0d4a824851 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 7 Apr 2024 10:28:26 +0100 Subject: [PATCH] Update some mimetypes, add xarchiver for thunar-archive-plugin --- system/hyprland.nix | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/system/hyprland.nix b/system/hyprland.nix index 2a3c13db..3f3a7a53 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -14,18 +14,18 @@ GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim"; }; systemPackages = with pkgs; [ - swaylock-effects - hyprpaper - xdg-utils wtype wl-clipboard + xarchiver + xdg-utils + swaylock-effects + hyprpaper swayimg pamixer pavucontrol playerctl brightnessctl mpv - streamlink ]; }; security.pam.services = { @@ -56,8 +56,8 @@ "inode/directory" = emacs; "inode/symlink" = emacs; - "image/jpeg" = ["swayimg.desktop"] ++ emacs; - "image/png" = ["swayimg.desktop"] ++ emacs; + "image/jpeg" = ["swayimg.desktop"]; + "image/png" = ["swayimg.desktop"]; "video/mp4" = ["mpv.desktop"]; "text/plain" = emacs; @@ -87,14 +87,16 @@ "application/toml" = emacs; "application/yaml" = emacs; "application/xml" = emacs; - "application/pdf" = emacs; - "application/epub+zip" = emacs; "application/rss+xml" = emacs; + "application/xhtml+xml" = emacs; "application/oxps" = emacs; - # "application/msword" = emacs; - "application/xhtml+xml" = browser; - "application/x-shellscript" = emacs; + + "application/pdf" = ["mupdf.desktop"]; + "application/epub+zip" = ["mupdf.desktop"]; + "application/msword" = ["writer.desktop"]; + "application/zip" = ["xarchiver.desktop"]; + "application/x-extension-htm" = browser; "application/x-extension-html" = browser; "application/x-extension-shtml" = browser; @@ -108,19 +110,16 @@ "x-scheme-handler/chrome" = browser; "x-scheme-handler/webcal" = browser; "x-scheme-handler/unknown" = emacs; - # "x-scheme-handler/ms-word" = emacs; - # "x-scheme-handler/ms-powerpoint" = emacs; - # "x-scheme-handler/ms-excel" = emacs; - # "x-scheme-handler/msteams" = ["teams-for-linux.desktop"]; + + "x-scheme-handler/ms-word" = ["writer.desktop"]; + "x-scheme-handler/ms-powerpoint" = ["impress.desktop"]; + "x-scheme-handler/ms-excel" = ["calc.desktop"]; }; in { enable = true; defaultApplications = applications; addedAssociations = applications; - removedAssociations = { - "x-scheme-handler/msteams" = browser; - "x-scheme-handler/zoomus" = browser; - }; + removedAssociations = {"x-scheme-handler/zoomus" = browser;}; }; programs = { dconf.enable = true;