feat: yazi bind to install theme from image

This commit is contained in:
2026-08-21 18:05:03 +02:00
parent ffdf09d173
commit 3517e7be3f
2 changed files with 16 additions and 1 deletions
+12 -1
View File
@@ -10,8 +10,19 @@ prepend_previewers = [
] ]
[opener] [opener]
open = [ pdf = [
{ run = 'xdg-open "$@"', desc = "Open" }, { run = 'xdg-open "$@"', desc = "Open" },
{ run = 'okular "$@"', desc = "Open in Okular" }, { run = 'okular "$@"', desc = "Open in Okular" },
{ run = 'evince "$@"', desc = "Open in Evince" }, { run = 'evince "$@"', desc = "Open in Evince" },
] ]
image = [
{ run = 'xdg-open "$@"', desc = "Open" },
{ run = 'set-theme "$@"', desc = "Set desktop theme from this image" },
]
[open]
rules = [
{ mime = "application/pdf", use = "pdf" },
{ mime = "image/png", use = "image" }
{ mime = "image/jpg", use = "image" }
]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
cd "$(dirname "$0")/.."
./setup.sh