diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-01-14 12:46:11 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-01-14 12:46:11 +0100 |
commit | 65b1ae0b07924f951412d28a13b7ce2111860986 (patch) | |
tree | 5a5022d654cbbcd70f90b19dbef41e4360d25636 /modules/user/aszlig/programs/xpdf | |
parent | e873408a92dd078cb0a9383909e8a78b656d17b7 (diff) |
modules: Add my own custom xpdf configuration
It's only a very handy keybinding for toggling the outline, because it sometimes gets very annoying if you don't want to go full screen but still don't want that outline eating up space (and no, I don't want to reach for the mouse). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig/programs/xpdf')
-rw-r--r-- | modules/user/aszlig/programs/xpdf/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/user/aszlig/programs/xpdf/default.nix b/modules/user/aszlig/programs/xpdf/default.nix new file mode 100644 index 00000000..e7edd806 --- /dev/null +++ b/modules/user/aszlig/programs/xpdf/default.nix @@ -0,0 +1,20 @@ +{ config, pkgs, lib, ... }: + +let + cfg = config.vuizvui.user.aszlig.programs.xpdf; + + xpdf = pkgs.xpdf.overrideDerivation (drv: { + postInstall = (drv.postInstall or "") + '' + echo 'bind ctrl-o any toggleOutline' >> "$out/etc/xpdfrc" + ''; + }); + +in { + options.vuizvui.user.aszlig.programs.xpdf = { + enable = lib.mkEnableOption "aszlig's xpdf"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = lib.singleton xpdf; + }; +} |