diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
| commit | 95528f5119f0e973bb0ffb41ed4e17564b39676e (patch) | |
| tree | 2aab63e1793e15adc8f986789318dfece947383f /mac/.config/yazi/yazi.toml | |
| parent | fa7b259c8011f410632dae255c04015fb5c5a0fa (diff) | |
updates
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 |
