From 2ecf1a8024e9a4c59bc5f73c241ade61861e7552 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 18 May 2024 10:32:55 +0530 Subject: [PATCH] replace evince with zathura --- home/programs/default.nix | 2 +- home/programs/zathura.nix | 48 ++++++++++++++++++++++++++++++++++++ home/wm/hyprland/default.nix | 6 ++--- 3 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 home/programs/zathura.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index 0341f0f..99a3127 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -19,6 +19,7 @@ ./tmux.nix ./virt-manager.nix ./yt-dlp.nix + ./zathura.nix ./zsh.nix ]; @@ -27,7 +28,6 @@ blueberry discord doctl - evince flyctl gh git-crypt diff --git a/home/programs/zathura.nix b/home/programs/zathura.nix new file mode 100644 index 0000000..3eb89aa --- /dev/null +++ b/home/programs/zathura.nix @@ -0,0 +1,48 @@ +_: { + programs.zathura = { + enable = true; + options = { + window-title-basename = true; + selection-clipboard = "clipboard"; + notification-error-bg = "rgba(255,85,85,1)"; + notification-error-fg = "rgba(248,248,242,1)"; + notification-warning-bg = "rgba(255,184,108,1)"; + notification-warning-fg = "rgba(68,71,90,1)"; + notification-bg = "rgba(40,42,54,1)"; + notification-fg = "rgba(248,248,242,1)"; + + completion-bg = "rgba(40,42,54,1)"; + completion-fg = "rgba(98,114,164,1)"; + completion-group-bg = "rgba(40,42,54,1)"; + completion-group-fg = "rgba(98,114,164,1)"; + completion-highlight-bg = "rgba(68,71,90,1)"; + completion-highlight-fg = "rgba(248,248,242,1)"; + + index-bg = "rgba(40,42,54,1)"; + index-fg = "rgba(248,248,242,1)"; + index-active-bg = "rgba(68,71,90,1)"; + index-active-fg = "rgba(248,248,242,1)"; + + inputbar-bg = "rgba(40,42,54,1)"; + inputbar-fg = "rgba(248,248,242,1)"; + statusbar-bg = "rgba(40,42,54,1)"; + statusbar-fg = "rgba(248,248,242,1)"; + + highlight-color = "rgba(255,184,108,0.5)"; + highlight-active-color = "rgba(255,121,198,0.5)"; + + default-bg = "rgba(40,42,54,1)"; + default-fg = "rgba(248,248,242,1)"; + + render-loading = true; + render-loading-fg = "rgba(40,42,54,1)"; + render-loading-bg = "gba(248,248,242,1)"; + + recolor-lightcolor = "rgba(40,42,54,1)"; + recolor-darkcolor = "rgba(248,248,242,1)"; + + adjust-open = "width"; + recolor = true; + }; + }; +} diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index 4a4dc6a..83c6999 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -119,9 +119,9 @@ in "size 90% 90%,class:^(imv)$" "center,class:^(imv)$" - "float,class:^(evince)$" - "size 90% 90%,class:^(evince)$" - "center,class:^(evince)$" + "float,class:^(org.pwmt.zathura)$" + "size 90% 90%,class:^(org.pwmt.zathura)$" + "center,class:^(org.pwmt.zathura)$" "float,class:^(yazi)$" "center,class:^(yazi)$"