~robertgzr/ubg

universal basic gallery
add screenshot to readme
document viewer config

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~robertgzr/ubg
read/write
git@git.sr.ht:~robertgzr/ubg

You can also use your local clone with git send-email.

#ubg

screenshot of ubg interface

meson setup build
meson compile -C build

or (with a working zig toolchain):

zig build

#Viewing files

Pressing <Enter> or double-clicking on a grid cell will call the system file handler for the respective filetype (through the xdg-portal, if available).

For the best experience I recommend MPV, specifically the umpv script from the TOOLS directory in their repo 1. Apply this patch to make it even more useful:

umpv.patch
--- /usr/bin/umpv	2024-11-25 13:05:04.050541118 +0100
+++ /usr/bin/umpv	2024-11-25 13:29:11.043590975 +0100
@@ -75,13 +75,18 @@
         # escape: \ \n "
         f = f.replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n")
         f = "\"" + f + "\""
-        sock.send(("raw loadfile " + f + " append\n").encode("utf-8"))
+        sock.send(("raw loadfile " + f + " replace\n").encode("utf-8"))
 else:
     # Let mpv recreate socket if it doesn't already exist.
 
     opts = shlex.split(os.getenv("MPV") or "mpv")
-    opts.extend(["--no-terminal", "--force-window", "--input-ipc-server=" + SOCK,
-                 "--"])
+    opts.extend([
+        "--no-terminal",
+        "--force-window",
+        "--input-ipc-server=" + SOCK,
+        "--autocreate-playlist=no",
+        "--",
+    ])
     opts.extend(files)
 
     subprocess.check_call(opts)

MPV makes for a great image viewer, when configured like this: 2.

#bugs, help, patches?

submit them to my public-inbox by sending an email to ~robertgzr/public-inbox@lists.sr.ht

Do not follow this link