#!/bin/sh FILE="$HOME/.config/rofi/emojis/emojis.txt" if [ "$@" ] then smiley=$(echo $@ | cut -d' ' -f1) echo -n "$smiley" | xsel -bi exit 0 fi cat $FILE