#!/bin/sh # ABOUTME: Rofi emoji picker that copies selected emoji to clipboard. # ABOUTME: Reads emoji list from /etc/xdg/rofi/emojis/emojis.txt. FILE="/etc/xdg/rofi/emojis/emojis.txt" if [ "$@" ] then smiley=$(echo $@ | cut -d' ' -f1) echo -n "$smiley" | xsel -bi exit 0 fi cat $FILE