this post was submitted on 01 Jul 2024
67 points (98.6% liked)

Linux

48035 readers
726 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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?

top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 21 points 4 months ago (1 children)

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

[–] [email protected] 2 points 4 months ago* (last edited 4 months ago) (2 children)

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

[–] [email protected] 3 points 4 months ago

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.

[–] [email protected] 2 points 4 months ago

At least on xorg the gifs I had worked.

[–] [email protected] 6 points 4 months ago

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

[–] [email protected] 5 points 4 months ago* (last edited 4 months ago) (1 children)

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

[–] [email protected] 3 points 4 months ago (1 children)

mpv as an image viewer? Is that... possible?

[–] [email protected] 2 points 4 months ago* (last edited 4 months ago) (1 children)

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..

[–] [email protected] 1 points 4 months ago

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

[–] [email protected] 2 points 4 months ago (1 children)

The gnome image viewer is Wayland native

[–] [email protected] 4 points 4 months ago (1 children)

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.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago) (1 children)

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.

[–] [email protected] 0 points 4 months ago (1 children)

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.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago) (1 children)

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

[–] [email protected] 1 points 4 months ago

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