Giter Club home page Giter Club logo

sxiv's Introduction

This sxiv (now un)stable version 26 (1d28627, 2020-01-16) side project has a different take on sxiv patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched and the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.

For example to include the image-mode-cycle patch then you would only need to flip this setting from 0 to 1 in patches.h:

#define IMAGE_MODE_CYCLE_PATCH 1

So if you have ever been curious about trying out sxiv patches then this may be a good starting point. Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch.

Refer to https://github.com/muennich/sxiv for the original version and further details on sxiv, how to install it and how it works.


Changelog:

2021-09-07 - Added the fifo patch

2021-06-11 - Added the alpha patch

2021-06-10 - Added the "allow escape key in external key handler" patch (for the lack of a better name), dmenu-like behaviour, the navigate if not scroll, the start from file, the set title and separate bar colors patches

2021-06-09 - Added the marks count, marks border, window title and swap bar colors patches

2021-06-08 - Added the thumb paddings and the libcurl patches

2021-05-25 - Added fill scale mode

2021-04-12 - Added animated WebP support

2021-04-09 - Added svg image support, WM hints and _NET_WM_PID and WM_CLIENT_MACHINE EWMH properties

2021-04-08 - Added image-mode-cycle, square-thumbnails and window-fit-image patches

Patches included:

  • allow-escape-key-in-external-key-handler

    • this patch removes redundant handling of the escape key allowing it to be used for other things such as exiting the external key handler with no output
    • optionally this patch allows multiple inputs to be sent to the external key handler until it returns with an exit status of 1
  • alpha

    • the alpha patch allows sxiv to be embedded into applications that expects it, e.g. tabbed with alpha patch applied
  • dmenu-like-behaviour

    • adds dmenu-like behaviour for sxiv such that selecting an image and pressing enter will exit sxiv and output the path to the currently selected file to standard out
  • ewmh-net-wm-pid

    • sets the _NET_WM_PID X property
  • ewmh-wm-client-machine

    • sets the WM_CLIENT_MACHINE X property
  • fifo

    • adds support for pipe-based redirection for sxiv
  • image-mode-cycle

    • adds the ability to cycle when viewing multiple images
  • libcurl

    • add support for remote links with libcurl
  • marks-border

    • shows marked files with a separate colored border in the thumbnail view
  • marks-count

    • shows the number of marked files in the thumbnail view
  • navigate-if-not-scroll

    • allows for the same keys used to scroll to be re-used for navigation if the image is not zoomed
  • scale-mode-fill

    • adds fill scale mode
  • separate-bar-colors

    • adds the option of having separate colors for the bar in thumbnail view
  • set-title

    • allows the window title to be set via a command line flag during runtime
  • start-from-file

    • similar to the -n command line option, -F starts from a file instead of its index
  • square-thumbnails

    • makes thumbnails square
  • svg-image-support

    • adds support for the SVG image format
  • swap-bar-colors

    • swaps the foreground and background colors of the bar
  • thumb-paddings

    • adds some control over the padding between thumbnails
  • webp-image-support

    • adds support for animated WebP images
  • window-fit-image

    • makes the window size fit the image when displaying a single image
  • window-title

    • adds the name or path of the currently viewed file to the window title
  • wm-hints

    • without this there is the potential for some window managers assuming that sxiv does not require focus

sxiv's People

Contributors

xyb3rt avatar bakkeby avatar baskerville avatar utkarshverma avatar quite avatar dwminer avatar mwgamera avatar falconindy avatar barthalion avatar bobrippling avatar squibbysquibby avatar sudo-nice avatar radhermit avatar vially avatar vaygr avatar hut avatar dwarfmaster avatar iagosrodrigues avatar octos avatar rck avatar shua avatar 4z3 avatar mtreca avatar contyk avatar vain avatar geneotech avatar sdx23 avatar elfring avatar iamleot avatar jwilk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.