kaomoji-rofi/kaomoji.sh

8 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
current_wid=$(xdo id)
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
echo -n "$kaomoji" | xclip -selection clipboard
xdotool key --window $current_wid --clearmodifiers ctrl+v