# helpers
cmd open-with-gui &$@ $fx # opens asynchronously, intended for GUI applications
cmd open-with-cli $$@ $fx # opens synchronously, intended for CLI/TUI applications
-cmd apply-wallpaper %{{swww img --resize crop -f Lanczos3 --transition-type center $f}}
-cmd apply-wallpaper-pixel %{{swww img --resize crop -f Nearest --transition-type center $f}}
cmd apply-wallpaper-content %{{matugen -t scheme-content image $f}}
cmd apply-wallpaper-expressive %{{matugen -t scheme-expressive image $f}}
cmd apply-wallpaper-fidelity %{{matugen -t scheme-fidelity image $f}}
cmd apply-wallpaper-neutral %{{matugen -t scheme-neutral image $f}}
cmd apply-wallpaper-rainbow %{{matugen -t scheme-rainbow image $f}}
cmd apply-wallpaper-tonal-spot %{{matugen -t scheme-tonal-spot image $f}}
-cmd apply-hyprpaper %{{hyprctl hyprpaper reload ,$f}}
cmd chdir cd "$@"
cmd open-terminal-here &setsid -f "${TERMINAL}" >/dev/null 2>&1
map ae add-file-and-edit
map aD add-dir-and-move-selection
map af add-file
-map ah :apply-hyprpaper
-map sw :apply-wallpaper
-map sW :apply-wallpaper-pixel
map awc :apply-wallpaper-content
map awe :apply-wallpaper-expressive
map awf :apply-wallpaper-fidelity