diff --git a/home/christoph/default.nix b/home/christoph/default.nix index a3ce7527..df233dba 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -630,6 +630,21 @@ rec { run = "plugin chmod"; desc = "Chmod on selected files"; } + { + on = "!"; + run = ''shell "$SHELL" --block''; + desc = "Open $SHELL here"; + } + { + on = ""; + run = ''shell -- ripdrag -a -n "$@"''; # $@: all selected files, $0: the hovered file, $n: the nth selected file + desc = "Expose files in ripdrag"; + } + { + on = "y"; + run = [''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'' "yank"]; + desc = "Copy files to system clipboard on yank"; + } ]; }; };