Added wayland support.
This commit is contained in:
parent
2b54422aed
commit
7a5c6c41ce
10
dmenu-share
10
dmenu-share
@ -1,6 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
file=$(find $HOME -type f | dmenu -l 15)
|
source $HOME/.config/dmenu/config
|
||||||
|
|
||||||
|
file=$(find $HOME -type f | $DMENU -l 15)
|
||||||
[ -z "$file" ] && exit
|
[ -z "$file" ] && exit
|
||||||
curl -F "file=@$file" 0x0.st | xclip -selection clipboard
|
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"
|
notify-send "Dmenu Share" "Ready to share"
|
||||||
|
Loading…
Reference in New Issue
Block a user