all the things
This commit is contained in:
29
graphics/sxiv/patches/patch-config_def_h
Normal file
29
graphics/sxiv/patches/patch-config_def_h
Normal file
@@ -0,0 +1,29 @@
|
||||
$OpenBSD$
|
||||
|
||||
Index: config.def.h
|
||||
--- config.def.h.orig
|
||||
+++ config.def.h
|
||||
@@ -18,8 +18,8 @@ enum {
|
||||
* (first/last value is used as min/max zoom level)
|
||||
*/
|
||||
static const float zoom_levels[] = {
|
||||
- 12.5, 25.0, 50.0, 75.0,
|
||||
- 100.0, 150.0, 200.0, 400.0, 800.0
|
||||
+ 25.0, 50.0, 100.0, 150.0, 200.0,
|
||||
+ 400.0, 800.0, 1024.0, 1280.0
|
||||
};
|
||||
|
||||
/* default slideshow delay (in sec, overwritten via -S option): */
|
||||
@@ -48,10 +48,10 @@ static const bool ALPHA_LAYER = false;
|
||||
#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, 360, 480, 640, 800 };
|
||||
|
||||
/* thumbnail size at startup, index into thumb_sizes[]: */
|
||||
-static const int THUMB_SIZE = 3;
|
||||
+static const int THUMB_SIZE = 4;
|
||||
|
||||
#endif
|
||||
#ifdef _MAPPINGS_CONFIG
|
||||
14
graphics/sxiv/patches/patch-exec_key-handler
Normal file
14
graphics/sxiv/patches/patch-exec_key-handler
Normal file
@@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-exec_key-handler,v 1.1 2019/10/03 10:29:32 kn Exp $
|
||||
|
||||
Index: exec/key-handler
|
||||
--- exec/key-handler.orig
|
||||
+++ exec/key-handler
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
rotate() {
|
||||
degree="$1"
|
||||
- tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do
|
||||
+ tr '\n' '\0' | xargs -0 readlink -f | sort | uniq | while read file; do
|
||||
case "$(file -b -i "$file")" in
|
||||
image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;;
|
||||
*) mogrify -rotate "$degree" "$file" ;;
|
||||
29
graphics/sxiv/patches/patch-sxiv_1
Normal file
29
graphics/sxiv/patches/patch-sxiv_1
Normal file
@@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-sxiv_1,v 1.4 2020/02/12 22:04:32 kn Exp $
|
||||
|
||||
Substitute paths.
|
||||
|
||||
Index: sxiv.1
|
||||
--- sxiv.1.orig
|
||||
+++ sxiv.1
|
||||
@@ -397,7 +397,7 @@ and the arguments given to it are: 1) path to image fi
|
||||
3) image height.
|
||||
.P
|
||||
There is also an example script installed together with sxiv as
|
||||
-.IR PREFIX/share/sxiv/exec/image-info .
|
||||
+.IR ${PREFIX}/share/sxiv/exec/image-info .
|
||||
.SH EXTERNAL KEY HANDLER
|
||||
Additional external keyboard commands can be defined using a handler program
|
||||
located in
|
||||
@@ -412,10 +412,10 @@ have been modified and reloads them.
|
||||
|
||||
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.
|
||||
|
||||
There is also an example script installed together with sxiv as
|
||||
-.IR PREFIX/share/sxiv/exec/key-handler .
|
||||
+.IR {PREFIX}/share/sxiv/exec/key-handler .
|
||||
.SH THUMBNAIL CACHING
|
||||
sxiv stores all thumbnails under
|
||||
.IR $XDG_CACHE_HOME/sxiv/ .
|
||||
Reference in New Issue
Block a user