diff options
Diffstat (limited to 'mac/.config/yazi/yazi.toml')
| -rw-r--r-- | mac/.config/yazi/yazi.toml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mac/.config/yazi/yazi.toml b/mac/.config/yazi/yazi.toml index 5cb5fc9..d1067fd 100644 --- a/mac/.config/yazi/yazi.toml +++ b/mac/.config/yazi/yazi.toml @@ -57,6 +57,13 @@ play = [ { run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" }, ] +[[opener.set-wallpaper]] +run = ''' + osascript -e 'on run {img}' -e 'tell application "System Events" to set picture of every desktop to img' -e 'end run' "$0" +''' +for = "macos" +desc = "Set as wallpaper" + [open] rules = [ # Folder @@ -78,6 +85,10 @@ rules = [ { name = "*", use = [ "open", "reveal" ] }, ] +[[open.prepend_rules]] +mime = "image/*" +use = [ "set-wallpaper", "open" ] + [tasks] micro_workers = 10 macro_workers = 10 |
