Is there an image viewer like nsxiv, but with native Wayland support? (codeberg.org)
from guttermonk@lemmy.ml to linux@lemmy.ml on 01 Jul 2024 02:27
https://lemmy.ml/post/17488784

According to this issue, it looks like there are no plans, understandably, for making a version/fork of nsxiv but with native Wayland support.

Any recommendations for a simple image viewer in Hyprland?

#linux

threaded - newest

progandy@feddit.de on 01 Jul 2024 05:15 next collapse

I don’t know how it compares to nsxiv, but imv supports Wayland.

guttermonk@lemmy.ml on 01 Jul 2024 22:02 collapse

Can you open animated gifs in imv? I just get a black screen, but the home page says animated gifs are supported.

progandy@feddit.de on 02 Jul 2024 12:55 next collapse

At least on xorg the gifs I had worked.

gamma@programming.dev on 02 Jul 2024 13:58 collapse

Judging purely on the dependencies I see in pacman, nsxiv depends on imlib2, which pulls in a lot of libraries, while imv links to a subset of those libraries directly.

IsoSpandy@lemm.ee on 01 Jul 2024 06:53 next collapse

I recently coded up a dirt simple image viewer. Like it is stupidly simple.

You can give it a go github.com/Dr-42/imeye

visone@fosstodon.org on 01 Jul 2024 10:55 next collapse

@guttermonk
Try swayimg

guttermonk@lemmy.ml on 02 Jul 2024 00:54 collapse

I like how it supports animated webp and gif files right out of the box. Would be perfect if you could open images from the file manager and navigate, but it doesn’t look like that’s in the works.

progandy@feddit.de on 02 Jul 2024 13:02 next collapse

I think the --all option is this mode.

guttermonk@lemmy.ml on 07 Jul 2024 19:16 collapse

Unfortunately, --all isn’t an option. The following options are available in swayimg:

Mandatory arguments to long options are mandatory for short options too.
  -r, --recursive      read directories recursively
  -o, --order=ORDER    set sort order for image list: none/[alpha]/random
  -s, --scale=SCALE    set initial image scale: [optimal]/fit/width/height/fill/real
  -l, --slideshow      activate slideshow mode on startup
  -f, --fullscreen     show image in full screen mode
  -p, --position=POS   set window position [parent]/X,Y
  -g, --size=SIZE      set window size: [parent]/image/W,H
  -a, --class=NAME     set window class/app_id
  -c, --config=S.K=V   set configuration parameter: section.key=value
  -v, --version        print version info and exit
  -h, --help           print this help and exit
progandy@feddit.de on 08 Jul 2024 04:22 collapse

Hmm, i think I mixed it up with the config. There is an all option in swayimgrc.

visone@fosstodon.org on 02 Jul 2024 13:05 next collapse

@guttermonk
I have a custom nuke opener file for nnn that do that's that. Every time I open an image, it uses swayimg -r (recursively).
I gues you can do some like that with xdg-open

guttermonk@lemmy.ml on 07 Jul 2024 19:29 collapse

I navigated to my screenshot folder in terminal and opened an image using swayimg -r but it wouldn’t let me navigate with n or p. I also tried going to my Pictures folder and used swayimg Screenshots/* like this thread suggested, but still no luck.

visone@fosstodon.org on 07 Jul 2024 20:06 collapse

@guttermonk
Ahh ok ok, I misunderstood it, I can move forward with space, but not backwards....sorry!!

guttermonk@lemmy.ml on 08 Jul 2024 17:39 collapse

Thanks for confirming that you’re seeing the same thing. Must be a bug.

callyral@pawb.social on 02 Jul 2024 13:18 collapse

This commit seems to be related.

guttermonk@lemmy.ml on 07 Jul 2024 19:13 collapse

If that let’s you flip between images that are in the same folder using arrow keys (or something similar), that would be awesome.

gramgan@lemmy.ml on 01 Jul 2024 17:26 next collapse

I tried imv and hated it. I just use feh (through XWayland) or mpv now.

theshatterstone54@feddit.uk on 02 Jul 2024 08:48 collapse

mpv as an image viewer? Is that… possible?

FruitLips@lemmy.ml on 03 Jul 2024 05:48 collapse

Just tried it and, yes. Jpg, Png, and Webp open as a half-second video. Actually kinda neat, I adjusted gamma, saturation, and saved a copy with 3 button presses. Well, 4 if you count pause…

<img alt="" src="https://lemmy.ml/pictrs/image/6183e4d7-abd6-456a-82df-58e9ef80638e.png">

theshatterstone54@feddit.uk on 03 Jul 2024 07:33 collapse

Why pause? Does it start a slideshow in the current directory?

possiblylinux127@lemmy.zip on 01 Jul 2024 17:35 next collapse

The gnome image viewer is Wayland native

guttermonk@lemmy.ml on 02 Jul 2024 01:07 collapse

Sounds interesting, but the requirements say it needs gnome-desktop. I’m using Hyprland on NixOS, so it doesn’t sound like this will work for my setup unfortunately. Thank you for the suggestion. Hopefully this helps others.

Sentau@discuss.tchncs.de on 02 Jul 2024 15:43 collapse

Currently, gnome has moved away from eye of Gnome to Image Viewer/Loupe. The website doesn’t have the dependencies though I don’t think you should need the gnome-desktop package. Perhaps you can look into it. Just be aware that the app is pretty barebones for now.

Edit - Alternatively, you could look into gwenview which is normally shipped in kde. That will have the advantage of shipping with a lot more editing options and since it is a more mature(I think is the right word) project, I expect it to have better support for esoteric file formats.

guttermonk@lemmy.ml on 07 Jul 2024 19:05 collapse

Gwenview looks a little too full featured, but the Gnome Image Viewer (Loupe) works well. No dependencies needed in Nix, and the arrow keys let you flip between different images that are in the same folder. All of the on-screen functionality works (copy, move to trash, zoom in/out, toggle full-screen, etc.), and keyboard shortcuts and gestures work great. The only bug I have to work out is that it doesn’t respect the gtk theme I have configured (GTK 2, 3, and 4). Otherwise, seems like a good option.

Sentau@discuss.tchncs.de on 08 Jul 2024 11:13 collapse

The only bug I have to work out is that it doesn’t respect the gtk theme I have configured (GTK 2, 3, and 4). Otherwise, seems like a good option.

Maybe this is because loupe uses libadwaita and not standard gtk4. Libadwaita does not follow the gtk theme.

Glad I could help though

guttermonk@lemmy.ml on 08 Jul 2024 17:36 collapse

Ahh that’s good to know. I had no idea about libadwaita. Thank you!

guttermonk@lemmy.ml on 21 Jul 2024 16:17 collapse

Another okay option I just stumbled on is Viewnior. The only thing it lacks is webp file support.