Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env zsh
- local emoji
- emoji=($(rofi -dmenu -i -p emoji -kb-custom-1 Ctrl+c < ~/.local/share/emoji.txt))
- ret=$?
- if [[ $ret -eq 0 ]]; then
- xdotool type --clearmodifiers ${emoji[1]}
- elif [[ $ret -eq 10 ]]; then
- xclip -i -sel clipboard <<< ${emoji[1]}
- fi
Add Comment
Please, Sign In to add comment