mirror of
https://gitlab.com/ceda_ei/kaomoji-rofi
synced 2025-06-02 11:16:52 +02:00
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.
|
||||

|
||||
|
||||
## 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…
x
Reference in New Issue
Block a user