Krolyxon
Commit 08b82e7

Branches

Refs →

dotfiles-x11.localbinunicode_emoji

13 lines · 359 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3# The famous "get a menu of emojis to copy" script.
4
5# Get user selection via dmenu from emoji file.
6chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -l 30 | sed "s/ .*//")
7
8# Exit if none chosen.
9[ -z "$chosen" ] && exit
10
11xdotool type "$chosen"
12printf "$chosen" | xclip -selection clipboard
13notify-send "'$chosen' copied to clipboard." &