Skip to content

Commit

Permalink
improve emoji script
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Jul 24, 2023
1 parent 56911d3 commit a09d98a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ rpm:
# fonts
- overpass-fonts
- overpass-mono-fonts
# config deps
- light
- fish
- wtype
- papirus-icon-theme
# audio
- pipewire
Expand Down
5 changes: 3 additions & 2 deletions usr/bin/emoji-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ mkdir -p "$cache_home"
data_file="$cache_home/emoji-menu.json"

if ! [ -f "$data_file" ]; then
curl -o "$data_file" -L "https://github.com/github/gemoji/raw/master/db/emoji.json"
curl -o "$data_file" -L "https://github.com/github/gemoji/raw/master/db/emoji.json"
fi

filter='.[] | (.emoji + " " + .description + " (" + (.aliases | join(", ")) + ")")'
sel="$(jq -r "$filter" <"$data_file" | fuzzel --dmenu --prompt " Select Emoji: " | cut -d ' ' -f 1 | tr -d '\n')"
if [ -n "$sel" ]; then
wl-copy "$sel"
wl-copy "$sel"
wtype "$sel"
fi

0 comments on commit a09d98a

Please sign in to comment.