You are not logged in.

#176 2011-06-28 13:50:49

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

anonymous_user wrote:

1. Would it be possible to make sxiv work with the +/- keys on the numpad?

Yes, it's already in the current HEAD.

anonymous_user wrote:

2. After viewing the last image in a set, could sxiv just cycle though the images instead of having an end?

I prefer the current behaviour. You have to change the code by yourself, to get this behaviour.

Offline

#177 2011-06-28 15:39:29

Rupp
Member
Registered: 2010-02-14
Posts: 47

Re: sxiv - Simple image viewer written in C

ber_t wrote:

I prefer the current behaviour. You have to change the code by yourself, to get this behaviour.

I don't know how anyone can prefer it not to be able to cycle through.

Offline

#178 2011-06-28 15:44:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

Rupp wrote:
ber_t wrote:

I prefer the current behaviour. You have to change the code by yourself, to get this behaviour.

I don't know how anyone can prefer it not to be able to cycle through.

Simple: I want to see every picture. Once.

Offline

#179 2011-06-28 15:51:30

Rupp
Member
Registered: 2010-02-14
Posts: 47

Re: sxiv - Simple image viewer written in C

karol wrote:
Rupp wrote:
ber_t wrote:

I prefer the current behaviour. You have to change the code by yourself, to get this behaviour.

I don't know how anyone can prefer it not to be able to cycle through.

Simple: I want to see every picture. Once.

Simple: Go to the last picture and stop.

Offline

#180 2011-06-28 16:00:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

Rupp wrote:
karol wrote:

Simple: I want to see every picture. Once.

Simple: Go to the last picture and stop.

After 15k pictures I may not be able to tell whether I've seen it already and instead of keeping my eye on the counter I prefer to get "You shall not pass" :-)

Offline

#181 2011-06-28 17:35:10

0mark
Member
From: earth
Registered: 2010-06-09
Posts: 162
Website

Re: sxiv - Simple image viewer written in C

Maybe we should make a patch collection somewhere (like this: http://dwm.suckless.org/patches/). Better to collect patches than to fight about the way. This dotshare thingy could be a solution. Here: https://bbs.archlinux.org/viewtopic.php?id=121366


Ceterum autem censeo Systemdinem esse delendam

Offline

#182 2011-06-29 05:48:49

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: sxiv - Simple image viewer written in C

Hi, I have a feature request:
sxiv should be able to use X resources.
Maybe it's just me, but I find myself always recompiling sxiv just to set BG_COLOR to match *background, and SEL_COLOR to *color10.
Woud be nice if sxiv could just use the resource sxiv*background for BG_COLOR, and sxiv*borderColor (or selColor, whatever) as SEL_COLOR.
What do you think?

Last edited by lolilolicon (2011-06-29 05:51:09)


This silver ladybug at line 28...

Offline

#183 2011-06-29 14:01:13

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

Rupp wrote:
karol wrote:
Rupp wrote:

I don't know how anyone can prefer it not to be able to cycle through.

Simple: I want to see every picture. Once.

Simple: Go to the last picture and stop.

You want to cycle? Simple: Use the 'g' key once you're on the last image.

0mark wrote:

Maybe we should make a patch collection somewhere [...] Better to collect patches than to fight about the way.

Exactly! I wanted to keep sxiv simple and I think right now it has anything build in, which is required for simply viewing a bunch of images. If you can't live without a certain feature, implement it by yourself and make your changes available to others. If other users like your patch, it might be included upstream.

lolilolicon wrote:

sxiv should be able to use X resources.

I wanted to keep sxiv config-free. config.h is meant as a concession to users, who wanted to change some aspects and it's dead simple. I will not use the X resource database or a config file. Sorry.

Offline

#184 2011-06-30 17:35:29

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: sxiv - Simple image viewer written in C

ber_t, it's really nice to see, that you are very strict when it comes to new features. I'm not being sarcastic, I really mean it!

Offline

#185 2011-07-01 05:43:13

gorilla
Member
From: Berlin
Registered: 2010-06-15
Posts: 72

Re: sxiv - Simple image viewer written in C

Army wrote:

ber_t, it's really nice to see, that you are very strict when it comes to new features. I'm not being sarcastic, I really mean it!

Yepp, that's what I wanted to say. Thumbs up!

Offline

#186 2011-07-02 09:29:55

cap_sensitive
Member
Registered: 2010-04-05
Posts: 35

Re: sxiv - Simple image viewer written in C

Could sxiv display some basic information about images? eg. resolution.

Offline

#187 2011-07-02 11:06:03

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: sxiv - Simple image viewer written in C

cap_sensitive wrote:

Could sxiv display some basic information about images? eg. resolution.

https://bbs.archlinux.org/viewtopic.php … 21#p953021

Offline

#188 2011-07-04 05:37:04

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: sxiv - Simple image viewer written in C

cap_sensitive wrote:

Could sxiv display some basic information about images? eg. resolution.

You could use mediainfo or lesspipe (lesspipe is kinda verbose though).

strcat@arch i ~/images % mediainfo bear.jpg 
General
Complete name                    : bear.jpg
Format                           : JPEG
File size                        : 109 KiB

Image
Format                           : JPEG
Width                            : 523 pixels
Height                           : 622 pixels
Chroma subsampling               : 4:4:4
Bit depth                        : 8 bits
Compression mode                 : Lossy

Last edited by thestinger (2011-07-04 05:37:22)

Offline

#189 2011-07-04 06:51:34

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: sxiv - Simple image viewer written in C

cap_sensitive wrote:

Could sxiv display some basic information about images? eg. resolution.

The resolution is already in the window title, e.g.

sxiv: [25/39] <62%> <1280x720> (99.33K) images/shot0001.png

Usually this gets displayed in the window title bar or/and panel, but I do agree it would be better if sxiv could draw such info in the window on demand, so that users who hide their panel and window title bar could actually see this info.

Last edited by lolilolicon (2011-07-04 06:53:20)


This silver ladybug at line 28...

Offline

#190 2011-07-05 23:27:06

avx
Member
Registered: 2011-07-05
Posts: 71

Re: sxiv - Simple image viewer written in C

First a thank you, I'm indeed much happier browsing images with sxiv than I was when I used feh, but two questions.

a) since keeping feh would be redundant, what do you guys (now) use for setting your wallpapers(for me, it should be able to handle nVidia TwinView)?

b) how about a simple action to pass on the currently viewed image to another application? I'm thinking about something like this: `sxiv -r /some/path | someapp`. So for example, I view some images, find one to be good as a wallpaper, press some key - ie. ^o - sxiv prints the path of the currently viewed image to stdout.
Edit, should have taken a look into config.h and setup commands there...

Last edited by avx (2011-07-06 00:00:28)

Offline

#191 2011-07-06 07:02:47

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: sxiv - Simple image viewer written in C

avx wrote:

a) since keeping feh would be redundant, what do you guys (now) use for setting your wallpapers(for me, it should be able to handle nVidia TwinView)?

imlibsetroot -s '/path/to/file'

in my ~/.xinitrc

Offline

#192 2011-08-16 23:32:39

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

Version 0.9 is out!

I've refactored the code to allow for customizable key and mouse bindings.

Using your old config.h will result in compilation errors! Please have a look at the new default config.h and adapt it to your needs.

Offline

#193 2011-08-17 14:33:42

gorilla
Member
From: Berlin
Registered: 2010-06-15
Posts: 72

Re: sxiv - Simple image viewer written in C

Thanks! Works fine and feels a bit faster imo...

Offline

#194 2011-08-17 14:50:25

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: sxiv - Simple image viewer written in C

I would be nice to have a special char to represent the absolute path of the filename in the custom commands.
I made a 'ln -s -t ~/tmp #' but '#' is relative and therefore I don't get the expected result.

Edit:
Replacing '#' by '$PWD/#' is working, so, I guess you can ignore my request...

Last edited by bloom (2011-08-17 15:45:19)


gh · da · ds

Offline

#195 2011-08-17 22:51:03

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

@bloom
I've completely revised the handling of file names and paths in sxiv.
The mixed usage of absolute and relative paths was somewhat inconsistent and it was quite unnecessary to calculate the absolute path of one file in different places. The shortcoming you've mentioned was the final straw.

The '#' character in the argument to run_command() is from now on always replaced by the absolute path of the file. I hope this won't break too much config.h's...

Offline

#196 2011-08-19 19:37:57

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: sxiv - Simple image viewer written in C

wow, I'm pretty amazed with this small and usefule app, espcially thumbnail mode smile I love it, but it will be better if we can have some information about our picture like name ? or even better with filetype, size, date ...  smile


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#197 2011-08-19 19:40:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

nXqd wrote:

wow, I'm pretty amazed with this small and usefule app, espcially thumbnail mode smile I love it, but it will be better if we can have some information about our picture like name ? or even better with filetype, size, date ...  smile

This info is already provided. https://bbs.archlinux.org/viewtopic.php … 58#p956858

Last edited by karol (2011-08-19 19:42:20)

Offline

#198 2011-08-19 19:52:45

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: sxiv - Simple image viewer written in C

karol wrote:
nXqd wrote:

wow, I'm pretty amazed with this small and usefule app, espcially thumbnail mode smile I love it, but it will be better if we can have some information about our picture like name ? or even better with filetype, size, date ...  smile

This info is already provided. https://bbs.archlinux.org/viewtopic.php … 58#p956858

Thanks man, I do really use dwm in no bar mode so I don't see it. press Alt+B and it's there smile
But I think it's still useful if sxiv draws some information out on the view, in case I use fullscreen mode, I don't have to pop out to see the info smile


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#199 2011-08-19 20:10:52

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: sxiv - Simple image viewer written in C

nXqd wrote:

But I think it's still useful if sxiv draws some information out on the view, in case I use fullscreen mode, I don't have to pop out to see the info smile

The author wants to keep it as simple as possible (as close to the unix philosophy), so he doesn't want to implement this. If this approach isn't what you want you can always use e.g. feh, which is a very nice image viewer as well!

Offline

#200 2011-08-19 23:00:07

gorilla
Member
From: Berlin
Registered: 2010-06-15
Posts: 72

Re: sxiv - Simple image viewer written in C

nXqd wrote:

But I think it's still useful if sxiv draws some information out on the view, in case I use fullscreen mode, I don't have to pop out to see the info

Probably you can write a script for that and bind it to a key in config.h (?)

Offline

Board footer

Powered by FluxBB