all the things
This commit is contained in:
3
graphics/nsxiv/patches/CVS/Entries
Normal file
3
graphics/nsxiv/patches/CVS/Entries
Normal file
@@ -0,0 +1,3 @@
|
||||
/patch-nsxiv_1/1.3/Fri Jun 24 13:19:20 2022//
|
||||
/patch-config_def_h/0/dummy timestamp//
|
||||
D
|
||||
1
graphics/nsxiv/patches/CVS/Repository
Normal file
1
graphics/nsxiv/patches/CVS/Repository
Normal file
@@ -0,0 +1 @@
|
||||
ports/graphics/nsxiv/patches
|
||||
1
graphics/nsxiv/patches/CVS/Root
Normal file
1
graphics/nsxiv/patches/CVS/Root
Normal file
@@ -0,0 +1 @@
|
||||
sdk@cvs.openbsd.org:/cvs
|
||||
48
graphics/nsxiv/patches/patch-config_def_h
Normal file
48
graphics/nsxiv/patches/patch-config_def_h
Normal file
@@ -0,0 +1,48 @@
|
||||
Allow to zoom in further when using the -t flag.
|
||||
The default is tiny on resolutions higher than FullHD.
|
||||
|
||||
Index: config.def.h
|
||||
--- config.def.h.orig
|
||||
+++ config.def.h
|
||||
@@ -16,7 +16,7 @@ static const char *DEFAULT_BAR_FG = NULL; /* NULL
|
||||
static const char *DEFAULT_FONT = "monospace-8";
|
||||
|
||||
/* if true, statusbar appears on top of the window */
|
||||
-static const bool TOP_STATUSBAR = false;
|
||||
+static const bool TOP_STATUSBAR = true;
|
||||
#endif /* HAVE_LIBFONTS */
|
||||
|
||||
#endif
|
||||
@@ -57,18 +57,18 @@ static const bool ALPHA_LAYER = false;
|
||||
* 0 or less means disable cache.
|
||||
* 100 means use all available memory (but not above CACHE_SIZE_LIMIT).
|
||||
*/
|
||||
-static const int CACHE_SIZE_MEM_PERCENTAGE = 3; /* use 3% of total memory for cache */
|
||||
-static const int CACHE_SIZE_LIMIT = 256 * 1024 * 1024; /* but not above 256MiB */
|
||||
-static const int CACHE_SIZE_FALLBACK = 32 * 1024 * 1024; /* fallback to 32MiB if we can't determine total memory */
|
||||
+static const int CACHE_SIZE_MEM_PERCENTAGE = 10; /* use 10% of total memory for cache */
|
||||
+static const int CACHE_SIZE_LIMIT = 2048 * 1024 * 1024; /* but not above 2GiB */
|
||||
+static const int CACHE_SIZE_FALLBACK = 512 * 1024 * 1024; /* fallback to 512MiB if we can't determine total memory */
|
||||
|
||||
#endif
|
||||
#ifdef _THUMBS_CONFIG
|
||||
|
||||
/* thumbnail sizes in pixels (width == height): */
|
||||
-static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
|
||||
+static const int thumb_sizes[] = { 128, 160, 240, 320, 460 };
|
||||
|
||||
/* thumbnail size at startup, index into thumb_sizes[]: */
|
||||
-static const int THUMB_SIZE = 3;
|
||||
+static const int THUMB_SIZE = 2;
|
||||
|
||||
#endif
|
||||
#ifdef _MAPPINGS_CONFIG
|
||||
@@ -86,7 +86,7 @@ static const keymap_t keys[] = {
|
||||
{ 0, XK_Return, g_switch_mode, None },
|
||||
{ 0, XK_f, g_toggle_fullscreen, None },
|
||||
{ 0, XK_b, g_toggle_bar, None },
|
||||
- { ControlMask, XK_x, g_prefix_external, None },
|
||||
+ { 0, XK_x, g_prefix_external, None },
|
||||
{ 0, XK_g, g_first, None },
|
||||
{ 0, XK_G, g_n_or_last, None },
|
||||
{ 0, XK_r, g_reload_image, None },
|
||||
28
graphics/nsxiv/patches/patch-config_def_h.orig
Normal file
28
graphics/nsxiv/patches/patch-config_def_h.orig
Normal file
@@ -0,0 +1,28 @@
|
||||
Allow to zoom in further when using the -t flag.
|
||||
The default is tiny on resolutions higher than FullHD.
|
||||
|
||||
Index: config.def.h
|
||||
--- config.def.h.orig
|
||||
+++ config.def.h
|
||||
@@ -65,10 +65,10 @@ static const int CACHE_SIZE_FALLBACK = 32 * 1024 * 102
|
||||
#ifdef _THUMBS_CONFIG
|
||||
|
||||
/* thumbnail sizes in pixels (width == height): */
|
||||
-static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
|
||||
+static const int thumb_sizes[] = { 160, 240, 320, 460, 640 };
|
||||
|
||||
/* thumbnail size at startup, index into thumb_sizes[]: */
|
||||
-static const int THUMB_SIZE = 3;
|
||||
+static const int THUMB_SIZE = 4;
|
||||
|
||||
#endif
|
||||
#ifdef _MAPPINGS_CONFIG
|
||||
@@ -86,7 +86,7 @@ static const keymap_t keys[] = {
|
||||
{ 0, XK_Return, g_switch_mode, None },
|
||||
{ 0, XK_f, g_toggle_fullscreen, None },
|
||||
{ 0, XK_b, g_toggle_bar, None },
|
||||
- { ControlMask, XK_x, g_prefix_external, None },
|
||||
+ { 0, XK_x, g_prefix_external, None },
|
||||
{ 0, XK_g, g_first, None },
|
||||
{ 0, XK_G, g_n_or_last, None },
|
||||
{ 0, XK_r, g_reload_image, None },
|
||||
14
graphics/nsxiv/patches/patch-nsxiv_1
Normal file
14
graphics/nsxiv/patches/patch-nsxiv_1
Normal file
@@ -0,0 +1,14 @@
|
||||
Corrects the path of keysymdef.h.
|
||||
|
||||
Index: nsxiv.1
|
||||
--- nsxiv.1.orig
|
||||
+++ nsxiv.1
|
||||
@@ -499,7 +499,7 @@ By default nsxiv(1) will send one image per-line to st
|
||||
|
||||
The key combo argument has the following form: "[C-][M-][S-]KEY",
|
||||
where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
|
||||
-keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
|
||||
+keysym as listed in ${X11BASE}/include/X11/keysymdef.h without the "XK_" prefix.
|
||||
If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance,
|
||||
K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is.
|
||||
|
||||
Reference in New Issue
Block a user