fix up wofiunicode to use wl-copy (from wl-clipboard) as the Wayland equivalent of xclip for Xorg

This commit is contained in:
MeaTLoTioN 2023-11-01 09:47:47 +00:00
parent a81cb70c6e
commit 33df4082e9

View File

@ -12,9 +12,9 @@ chosen=$(grep -v "#" $emojifile | wofi --dmenu -i -L 20)
[ "$chosen" != "" ] || exit [ "$chosen" != "" ] || exit
c=$(echo "$chosen" | sed "s/ .*//") c=$(echo "$chosen" | sed "s/ .*//")
echo "$c" | tr -d '\n' | wl-copy echo "$c" | wl-copy -n
notify-send "'$c' copied to clipboard." & notify-send "'$c' copied to clipboard." &
s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}') s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}')
echo "$s" | tr -d '\n' | wl-copy -p echo "$s" | wl-copy -n -p
notify-send "'$s' copied to primary." & notify-send "'$s' copied to primary." &