Copy to clipboard also
This commit is contained in:
parent
a993197ab9
commit
442634d440
|
@ -1,12 +1,13 @@
|
||||||
# Kaomoji Rofi
|
# 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)
|
![Kaomoji Rofi Preview](ss.png)
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
+ `rofi`
|
+ `rofi`
|
||||||
+ `xdotool`
|
+ `xdotool`
|
||||||
|
+ `xclip`
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
|
|
||||||
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
|
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
|
||||||
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
|
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