kaomoji-rofi/kaomoji.sh

8 lines
269 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2019-04-27 17:59:29 +02:00
current_wid=$(xdo id)
2018-11-13 18:52:27 +01:00
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
2018-11-13 20:26:16 +01:00
echo -n "$kaomoji" | xclip -selection clipboard
2019-04-27 17:59:29 +02:00
xdotool key --window $current_wid --clearmodifiers ctrl+v