bakkeby / sxiv-flexipatch Goto Github PK
View Code? Open in Web Editor NEWThis project forked from xyb3rt/sxiv
Simple X Image Viewer
License: GNU General Public License v2.0
This project forked from xyb3rt/sxiv
Simple X Image Viewer
License: GNU General Public License v2.0
I know it has no real purpose but would it be easy to implement an alpha channel for background color?
Something like rxvt-unicode has would be cool.
You can just set like [65]#282828 in Xresources and have real transparency that way.. :D
I am total C illiterate..
I like this program tho and I have two seperate installs..
One for square thumbnails whch I use to pick my wallpaper and one with normal Thumbnails which I use to select games with game covers that are usually 9:16..
Is there a way to get both options in one install so I can get rid of one?
Sorry if this i a stupid question..
I want to use sxiv for games launching but steam only has 9:16 images for its games so I have to have one build for games launching without the square thumbs patch.
The problem now is, that thumbnail margin width=height regardless of image dimensions...
You see, this looks ugly.
I tried to find something usefull in the thumbs.c and I can definitively see some math but I wouldn't know how to tell it that want w -20 or so xD
Maybe u're kind and can point me to the right direction where the math is I need to change. thx =)
I guess I would be fine hardcoding a nice 9:16 size for all sorts of covers.. Maybe I'll misuse it for movies as well then..
edit: changed padding with margin as the padding refers to the space between image & frame.
I can set the padding to a negative value.. so margin guess would be possible too xD
Hi, just wondering if u feel like continuing this flexipatch build. nsxiv v31 just released, so if u have the time maybe u can still play around with this c;
When trying to make without the alpha patch i get this error
window.c:79:39: error: macro "DefaultColormap" requires 2 arguments, but only 1 given
79 | DefaultColormap(e->dpy),
tried changing it to DefaultColormap(e->dpy,e->scr), and it seems to work
I think you might be interested in FIFO/pipe support -- This patch allows you do read from stdin, so you can do something like curl 'https://link.to/image.png' | sxiv /dev/stdin
which is much more saner than adding networking to the image viewer itself.
Also the xresources patch in this repo seems to be using NULL as a default fallback, as I mentioned here I believe it's better to use fg/bg as fallback in order to stay consistent with the default sxiv behavior.
sxiv can open jpg and png images without any extension (.jpg, .png) at the end,
but it fails for webp images.
'Stream' images, like feh.
https://github.com/explosion-mental/sxiv/blob/main/patches/libcurl.patch
Someone patched his Sxiv so if you open a picture it automatically loads in all other pictures in the given directory so one can scroll through.. I know there is hacky stuff but this would be a nice addition to flexipatch imho..
https://github.com/qsmodo/sxiv
edit: I might be to stupid to get it to work right..
I know there is an -F option but I have to give it a list.. like -F file filelist.. then it works.. but it's hard to integrate into my filemanager..
One could do something like sxiv file "$(pwd)" but then u have a duplicate. I'd rather have an internal function..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.