This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
33
modules/home/hyprland/applications/zathura/default.nix
Normal file
33
modules/home/hyprland/applications/zathura/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.wayland.windowManager.hyprland;
|
||||
app = cfg.applications.pdfviewer.default;
|
||||
desktop = "org.pwmt.zathura.desktop";
|
||||
mimeTypes = [
|
||||
"application/pdf"
|
||||
];
|
||||
associations =
|
||||
let
|
||||
genMimeAssociations = import ../genMimeAssociations.nix;
|
||||
in
|
||||
genMimeAssociations desktop mimeTypes;
|
||||
|
||||
inherit (lib) mkIf;
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.enable && app == "zathura") {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
guiptions = "none";
|
||||
selection-clipboard = "clipboard";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
defaultApplications = associations;
|
||||
associations.added = associations;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue