diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-12-17 18:37:56 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-12-17 18:37:56 +0000 |
commit | 1e267c52240e177f635f8f718099571e24493088 (patch) | |
tree | a8c3dce192a099c855d2332b75ec86a670b47b59 /.local/bin/emoji-menu | |
parent | 8f064c692ff1407ef9b1daaa4d1aa723066d19c7 (diff) |
Converted from bash to sh.
Diffstat (limited to '.local/bin/emoji-menu')
-rwxr-xr-x | .local/bin/emoji-menu | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/.local/bin/emoji-menu b/.local/bin/emoji-menu deleted file mode 100755 index 6b20513..0000000 --- a/.local/bin/emoji-menu +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -eu -# From: https://git.sr.ht/~emersion/dotfiles/tree/6575f89856d012c2c31e9e7d2c807f350c7503d4/item/bin/emoji-menu -# This version uses `fuzzel` instead of `menu`. - -default_cache_home=~/.cache -cache_home="${XDG_CACHE_HOME:-$default_cache_home}" -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" -fi - -filter='.[] | (.emoji + " " + .description + " (" + (.aliases | join(", ")) + ")")' -sel="$(jq -r "$filter" <"$data_file" | fuzzel --no-exit-on-keyboard-focus-loss -d | cut -d ' ' -f 1 | tr -d '\n')" -if [ -n "$sel" ]; then - # wl-ime-type "$sel" - wl-copy "$sel" -fi |