Switch from xsel to xclip.
This commit is contained in:
parent
7946b48a11
commit
aa716bcd71
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,6 @@ chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -l 30 -i | sed "s/ .*//")
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
xdotool type "$chosen"
|
xdotool type "$chosen"
|
||||||
else
|
else
|
||||||
printf "$chosen" | xsel -l /dev/null
|
printf "$chosen" | xclip -rmlastnl
|
||||||
dunstify "'$chosen' copied to clipboard" &
|
dunstify "'$chosen' copied to clipboard" &
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue