#!/bin/sh . $HOME/.config/dmenu/config file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15) [ -z "$file" ] && exit if [ "$XDG_SESSION_TYPE" = "wayland" ]; then curl -F "file=@$file" 0x0.st | wl-copy -n else curl -F "file=@$file" 0x0.st | xclip -selection clipboard fi notify-send "Dmenu Share" "Ready to share"