Copy to clipboard also
This commit is contained in:
parent
a993197ab9
commit
442634d440
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue