From 962a5beda66817e90b9dbae68424a0abc7132f48 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Mon, 7 Oct 2024 18:35:29 +0200 Subject: [PATCH] home/programs/media: add zathura --- home/programs/media/default.nix | 1 + home/programs/media/zathura.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 home/programs/media/zathura.nix diff --git a/home/programs/media/default.nix b/home/programs/media/default.nix index d9f0312..91564ab 100644 --- a/home/programs/media/default.nix +++ b/home/programs/media/default.nix @@ -1,4 +1,5 @@ {pkgs, ...}: { + imports = [./zathura.nix]; programs.mpv.enable = true; home.packages = [ pkgs.gnome-calculator diff --git a/home/programs/media/zathura.nix b/home/programs/media/zathura.nix new file mode 100644 index 0000000..b7853c7 --- /dev/null +++ b/home/programs/media/zathura.nix @@ -0,0 +1,25 @@ +{pkgs, ...}: { + programs.zathura = { + enable = true; + options = { + font = "Inter 12"; + selection-notification = true; + + selection-clipboard = "clipboard"; + adjust-open = "best-fit"; + pages-per-row = "1"; + scroll-page-aware = "true"; + scroll-full-overlap = "0.01"; + scroll-step = "100"; + zoom-min = "10"; + }; + + extraConfig = "include catppuccin-frappe"; + }; + xdg.configFile = { + "zathura/catppuccin-frappe".source = pkgs.fetchurl { + url = "https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-frappe"; + hash = "sha256-xdWI/Ai3iE0zRF/9DCxILKmVaNWbfqHm7Xeh6eKM3MY="; + }; + }; +}