Copy to clipboard also

This commit is contained in:
Ceda EI 2018-11-14 00:56:16 +05:30
parent a993197ab9
commit 442634d440
2 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,13 @@
# Kaomoji Rofi
Rofi script for typing kaomojis.
Rofi script for typing kaomojis. Types kaomojis and copies them into your clipboard.
![Kaomoji Rofi Preview](ss.png)
## Requirements
+ `rofi`
+ `xdotool`
+ `xclip`
## Installation

View File

@ -2,4 +2,5 @@
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
xdotool type --clearmodifiers "$kaomoji"
echo -n "$kaomoji" | xclip -selection clipboard
xdotool key --clearmodifiers ctrl+v