Krolyxon
Commit 619253a

Branches

Refs →

aurora.localbinfuzzelunicode

13 lines · 337 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/chars/* | fuzzel -d -i -l 30 | sed "s/ .*//")
7
8# Exit if none chosen.
9[ -z "$chosen" ] && exit
10
11wtype "$chosen"
12printf "$chosen" | wl-copy
13notify-send "'$chosen' copied to clipboard." &