aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-15 22:34:56 -0300
committerEuAndreh <eu@euandre.org>2021-01-15 22:34:56 -0300
commit3b6b7f68c096ffcf485abb37f78a1e1f26149aa9 (patch)
treec1371a8e4b890744dc70e8bac2f5ff9fa1c46878
parentexrc.conf: Add ruler and showmode configurations (diff)
downloaddotfiles-3b6b7f68c096ffcf485abb37f78a1e1f26149aa9.tar.gz
dotfiles-3b6b7f68c096ffcf485abb37f78a1e1f26149aa9.tar.xz
dmenu-emoji.sh: Fix script to work from any path
-rwxr-xr-xscripts/ad-hoc/dmenu-emoji.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ad-hoc/dmenu-emoji.sh b/scripts/ad-hoc/dmenu-emoji.sh
index e03af076..11f8ab48 100755
--- a/scripts/ad-hoc/dmenu-emoji.sh
+++ b/scripts/ad-hoc/dmenu-emoji.sh
@@ -3,9 +3,11 @@
# Derived from:
# https://github.com/porras/dmenu-emoji
+LIST="$HOME/dev/libre/dotfiles/scripts/ad-hoc/emoji-list.txt"
+
dmenu \
-l 20 \
-i \
-p 'Emoji: ' -fn Monospace-18 \
- < emoji-list.txt \
+ < "$LIST" \
| awk '{print $(NF)}' | tr -d '\n' | xclip -sel clip