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?

21 points

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

permalink
report
reply
2 points
*

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

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
3 points

At least on xorg the gifs I had worked.

permalink
report
parent
reply
6 points

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

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

permalink
report
reply
5 points
*

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

permalink
report
reply
3 points

mpv as an image viewer? Is that… possible?

permalink
report
parent
reply
3 points
*

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…

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
3 points

@guttermonk
Try swayimg

permalink
report
reply
1 point
*

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.

permalink
report
parent
reply
1 point

This commit seems to be related.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

@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

permalink
report
parent
reply
1 point
*

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.

permalink
report
parent
reply
1 point

I think the --all option is this mode.

permalink
report
parent
reply
1 point

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
permalink
report
parent
reply
2 points

The gnome image viewer is Wayland native

permalink
report
reply
4 points

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.

permalink
report
parent
reply
2 points
*

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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.9K

    Monthly active users

  • 6.3K

    Posts

  • 175K

    Comments