a lot more changes to get it to work on hpm

This commit is contained in:
Sebastian Moser
2023-10-31 16:14:10 +00:00
parent 197a40364c
commit 91f23c5632
24 changed files with 403 additions and 343 deletions

41
programs/zathura.nix Normal file
View File

@@ -0,0 +1,41 @@
{ ... }:
{
programs.zathura = {
enable = true;
options = {
selection-clipboard = "clipboard";
roll-step = 40;
};
mappings = {
"<C-y>" = ''scroll down'';
"<C-x>" = ''scroll up'';
"<C-o>" = ''scroll left'';
"<C-p>" = ''scroll right'';
"j" = ''feedkeys "4<C-y>"'';
"k" = ''feedkeys "4<C-x>"'';
"h" = ''feedkeys "4<C-o>"'';
"l" = ''feedkeys "4<C-p>"'';
"J" = ''feedkeys "<C-y>"'';
"K" = ''feedkeys "<C-x>"'';
"H" = ''feedkeys "<C-o>"'';
"L" = ''feedkeys "<C-p>"'';
"y" = ''zoom in'';
"+" = ''feedkeys "yyy"'';
"*" = ''feedkeys "y"'';
"x" = ''zoom out'';
"-" = ''feedkeys "xxx"'';
"_" = ''feedkeys "x"'';
"n" = ''navigate next'';
"p" = ''navigate previous'';
};
};
}